Bug 342587 - Extension update can be displayed on app upgrade. patch=michael.wu, r=rob_strong

This commit is contained in:
rob_strong%exchangecode.com 2006-06-28 05:01:10 +00:00
Родитель 7e7e9b22b6
Коммит 762144b1d5
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1398,7 +1398,10 @@ function installUpdatesAll() {
function restartApp() {
const nsIAppStartup = Components.interfaces.nsIAppStartup;
if (canQuitApplication())
if (gUpdatesOnly)
window.close();
else if (canQuitApplication())
Components.classes["@mozilla.org/toolkit/app-startup;1"].getService(nsIAppStartup)
.quit(nsIAppStartup.eRestart | nsIAppStartup.eAttemptQuit);
}

Просмотреть файл

@ -2709,7 +2709,6 @@ ExtensionManager.prototype = {
break;
case "profile-after-change":
this._profileSelected();
this._showUpdatesWindow();
break;
case "quit-application-requested":
this._confirmCancelDownloadsOnQuit(subject);
@ -2857,6 +2856,8 @@ ExtensionManager.prototype = {
var isDirty = false;
var forceAutoReg = false;
this._showUpdatesWindow();
// 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.