Bug 347231: "Clear Private Data" doesn't always clear Error Console even though configured to clear history, patch by Michael Wu <michael.wu@mozilla.com>, r=mconnor

This commit is contained in:
gavin@gavinsharp.com 2007-10-02 20:35:33 -07:00
Родитель 828204b795
Коммит 1028379766
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -142,9 +142,9 @@ Sanitizer.prototype = {
get canClear()
{
var globalHistory = Components.classes["@mozilla.org/browser/global-history;2"]
.getService(Components.interfaces.nsIBrowserHistory);
return globalHistory.count != 0;
// bug 347231: Always allow clearing history due to dependencies on
// the browser:purge-session-history notification. (like error console)
return true;
}
},