зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1249439
- xul:browser adds itself as a strong observer to observer service, r=gijs
--HG-- extra : rebase_source : a2b0012e57d9998504986f8b2b6072f199701fef
This commit is contained in:
Родитель
cd9e373713
Коммит
e80ba3add6
|
@ -844,7 +844,7 @@
|
|||
if (this.docShell && this.webNavigation.sessionHistory) {
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"]
|
||||
.getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(this, "browser:purge-session-history", false);
|
||||
os.addObserver(this, "browser:purge-session-history", true);
|
||||
|
||||
// enable global history if we weren't told otherwise
|
||||
if (!this.hasAttribute("disableglobalhistory") && !this.isRemoteBrowser) {
|
||||
|
|
|
@ -364,7 +364,7 @@
|
|||
}
|
||||
|
||||
if (!this.hasAttribute("disablehistory")) {
|
||||
Services.obs.addObserver(this, "browser:purge-session-history", false)
|
||||
Services.obs.addObserver(this, "browser:purge-session-history", true)
|
||||
}
|
||||
|
||||
let jsm = "resource://gre/modules/RemoteController.jsm";
|
||||
|
|
Загрузка…
Ссылка в новой задаче