title: Firefox extension upgrade: distinguish betw. user-initiated vs. auto-update
body: <p><a href="https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Listening_for_load_and_unload#options.loadReason" rel="nofollow">https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Listening_for_load_and_unload#options.loadReason</a> provides a (indirect) way to listen for an add-on upgrade event (loadReason == “upgrade”).</p>
  
  <p>Is there a programmatic way to detect whether the upgrade was user-initiated, or was an auto-update?</p>
  
  <p>a) User-initiated (user goes to my web site and installs the latest version of the add-on): once the new version is loaded, I’d like to pop a new tab/URL that says “Thank you for upgrading...”</p>
  
  <p>b) Auto-update (update.rdf): No user messaging.</p>
  
  <p>However, in both the a) and b) scenarios, my exports.main() is seeing loadReason == “upgrade”, so I don’t know how to distinguish between the two.</p>
  
  <p>Any workaround suggestions?</p>
  
  <p>TIA</p>