зеркало из https://github.com/mozilla/pjs.git
Bug 342587 - Extension update can be displayed on app upgrade. patch=michael.wu, r=rob_strong
This commit is contained in:
Родитель
7e7e9b22b6
Коммит
762144b1d5
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче