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:
bsmedberg%covad.net 2006-05-17 02:35:45 +00:00
parent cb810d02d0
commit e670617eb7

View File

@ -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();
}