зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2e81de8496
Коммит
ba20ce208a
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче