mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
bug 755116 - Add a way to disable global history on a docshell (while leaving session history active). r=gavin
This commit is contained in:
parent
c858eea237
commit
43457645b4
@ -710,8 +710,8 @@
|
||||
this.webNavigation.sessionHistory =
|
||||
Components.classes["@mozilla.org/browser/shistory;1"]
|
||||
.createInstance(Components.interfaces.nsISHistory);
|
||||
// enable global history
|
||||
if (this.docShell)
|
||||
// enable global history if we weren't told otherwise
|
||||
if (this.docShell && !this.hasAttribute("disableglobalhistory"))
|
||||
this.docShell.QueryInterface(Components.interfaces.nsIDocShellHistory).useGlobalHistory = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user