Hello,
As FF49 is out, I found out that if there are no addons currently installed, Firefox always requires a restart to install an addon.
I found this link https://blog.mozilla.org/addons/2016/08/15/restart-required/ and the comments mention: < In Firefox 48, multiprocess capability was only enabled for people with no add-ons installed. If you are one of these people and you now install an add-on, you’ll be asked to restart Firefox even if the add-on is restartless. >
I believe this is what i am experiencing on FF49.
But in this case, when installing, the require(‘sdk/self’).loadReason value is always “startup” even upon install.
My current main.js code contains the following:
if (loadReason === “install”) {
// do something that only executes during install
}
Now this is broken with FF49 and I am not sure how to deal with the browser restart. I could detect the first addon execution by using local storage, but this is not as good as reading loadReason.
Any ideas? Thanks!