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:
Olli Pettay 2016-02-19 13:10:22 +02:00
parent 27f059ed50
commit 26b2647326
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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";