mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1249439
- xul:browser adds itself as a strong observer to observer service, r=gijs
--HG-- extra : rebase_source : 11f0cfcec615751c97c8632480c32400825ebe25
This commit is contained in:
parent
27f059ed50
commit
26b2647326
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user