Bug 1231172 - instanceID should be passed to add-ons present at startup too r=aswan
MozReview-Commit-ID: DB66gshqFhS
--- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm
+++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm
@@ -4702,23 +4702,21 @@ this.XPIProvider = {
let activeAddon = this.activeAddons.get(aAddon.id);
if (!activeAddon) {
this.loadBootstrapScope(aAddon.id, aFile, aAddon.version, aAddon.type,
aAddon.multiprocessCompatible || false,
runInSafeMode);
activeAddon = this.activeAddons.get(aAddon.id);
}
- if (aAddon.bootstrap) {
- if (aMethod == "startup" || aMethod == "shutdown") {
- if (!aExtraParams) {
- aExtraParams = {};
- }
- aExtraParams["instanceID"] = this.activeAddons.get(aAddon.id).instanceID;
+ if (aMethod == "startup" || aMethod == "shutdown") {
+ if (!aExtraParams) {
+ aExtraParams = {};
}
+ aExtraParams["instanceID"] = this.activeAddons.get(aAddon.id).instanceID;
}
// Nothing to call for locales
if (aAddon.type == "locale")
return;
let method = undefined;
try {