mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 224829 - docshell should not require non-gecko interface nsIBrowserHistory. This was fixed by introducing a new interface nsIGlobalHistory2 to replace the current nsIGlobalHistory. There are two-way adapters so that the frozen interface still works. r=biesi sr=bz a=mscott for toolkit/ changes.
This commit is contained in:
parent
cb810d02d0
commit
e670617eb7
@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
var globalHistButton = document.getElementById("browserClearHistory");
|
||||
var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"]
|
||||
var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"]
|
||||
.getService(Components.interfaces.nsIBrowserHistory);
|
||||
if (globalHistory.count == 0)
|
||||
globalHistButton.disabled = true;
|
||||
@ -61,7 +61,7 @@
|
||||
|
||||
function prefClearGlobalHistory()
|
||||
{
|
||||
var globalHistory = Components.classes["@mozilla.org/browser/global-history;1"]
|
||||
var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"]
|
||||
.getService(Components.interfaces.nsIBrowserHistory);
|
||||
globalHistory.removeAllPages();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user