Loading toolkit/mozapps/extensions/src/nsExtensionManager.js.in +17 −3 Original line number Diff line number Diff line Loading @@ -2344,13 +2344,14 @@ ExtensionManager.prototype = { */ start: function(commandLine) { var isDirty = false; var forceAutoReg = false; // Somehow the component list went away, and for that reason the new one // generated by this function is going to result in a different compreg. // We must force a restart. var componentList = getFile(KEY_PROFILEDIR, [FILE_EXTENSION_MANIFEST]); if (!componentList.exists()) isDirty = true; forceAutoReg = true; // Check for missing manifests - e.g. missing extensions.ini, missing // extensions.cache, extensions.rdf etc. If any of these files Loading @@ -2370,8 +2371,15 @@ ExtensionManager.prototype = { isDirty = true; // Extension Changes if (isDirty) return this._finishOperations(); if (isDirty) { var needsRestart = this._finishOperations(); if (forceAutoReg) { this._extensionListChanged = true; needsRestart = true; } return needsRestart; } this._startTimers(); Loading Loading @@ -3096,6 +3104,11 @@ ExtensionManager.prototype = { var lastAppVersion = getPref("getCharPref", PREF_EM_LAST_APP_VERSION, ""); if (currAppVersion == lastAppVersion) return false; // With a new profile lastAppVersion doesn't exist yet. if (!lastAppVersion) { gPref.setCharPref(PREF_EM_LAST_APP_VERSION, currAppVersion); return false; } // Version mismatch, we have to load the extensions datasource and do // version checking. Time hit here doesn't matter since this doesn't happen Loading @@ -3116,6 +3129,7 @@ ExtensionManager.prototype = { this._appDisableItem(items[i].id); // Now update the last app version so we don't do this checking again. gPref.setCharPref(PREF_EM_LAST_APP_VERSION, currAppVersion); this._updateManifests(true); return true; }, Loading Loading
toolkit/mozapps/extensions/src/nsExtensionManager.js.in +17 −3 Original line number Diff line number Diff line Loading @@ -2344,13 +2344,14 @@ ExtensionManager.prototype = { */ start: function(commandLine) { var isDirty = false; var forceAutoReg = false; // Somehow the component list went away, and for that reason the new one // generated by this function is going to result in a different compreg. // We must force a restart. var componentList = getFile(KEY_PROFILEDIR, [FILE_EXTENSION_MANIFEST]); if (!componentList.exists()) isDirty = true; forceAutoReg = true; // Check for missing manifests - e.g. missing extensions.ini, missing // extensions.cache, extensions.rdf etc. If any of these files Loading @@ -2370,8 +2371,15 @@ ExtensionManager.prototype = { isDirty = true; // Extension Changes if (isDirty) return this._finishOperations(); if (isDirty) { var needsRestart = this._finishOperations(); if (forceAutoReg) { this._extensionListChanged = true; needsRestart = true; } return needsRestart; } this._startTimers(); Loading Loading @@ -3096,6 +3104,11 @@ ExtensionManager.prototype = { var lastAppVersion = getPref("getCharPref", PREF_EM_LAST_APP_VERSION, ""); if (currAppVersion == lastAppVersion) return false; // With a new profile lastAppVersion doesn't exist yet. if (!lastAppVersion) { gPref.setCharPref(PREF_EM_LAST_APP_VERSION, currAppVersion); return false; } // Version mismatch, we have to load the extensions datasource and do // version checking. Time hit here doesn't matter since this doesn't happen Loading @@ -3116,6 +3129,7 @@ ExtensionManager.prototype = { this._appDisableItem(items[i].id); // Now update the last app version so we don't do this checking again. gPref.setCharPref(PREF_EM_LAST_APP_VERSION, currAppVersion); this._updateManifests(true); return true; }, Loading