Fix for bug 257338: "Delete Host" and "Delete Domain" features of the History Window do not work

r=bsmedberg, sr=neil
This commit is contained in:
Stefan.Borggraefe%gmx.de 2004-08-30 06:43:11 +00:00
Родитель 2e81de8496
Коммит ba20ce208a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -226,13 +226,13 @@ nsHistoryController.prototype =
switch(command) {
case "cmd_deleteByHostname":
if (!gGlobalHistory)
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory.removePagesFromHost(gLastHostname, false)
return true;
case "cmd_deleteByDomain":
if (!gGlobalHistory)
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory.removePagesFromHost(gLastDomain, true)
return true;