зеркало из https://github.com/mozilla/pjs.git
Don't shadow a global variable, which allows the observer to be removed and thus fixes a leak. b=256886 r=ben sr=brendan
This commit is contained in:
Родитель
3cf00d4f33
Коммит
5488196f09
|
@ -142,7 +142,7 @@ function Startup()
|
|||
}
|
||||
|
||||
// Now look and see if we're being opened by XPInstall
|
||||
var gDownloadManager = new XPInstallDownloadManager();
|
||||
gDownloadManager = new XPInstallDownloadManager();
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(gDownloadManager, "xpinstall-download-started", false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче