From 2aa5904b560bda0bac6e9f751bad6e005eb0282a Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Wed, 3 Oct 2007 03:35:33 +0000 Subject: [PATCH] Bug 347231: "Clear Private Data" doesn't always clear Error Console even though configured to clear history, patch by Michael Wu , r=mconnor git-svn-id: svn://10.0.0.236/trunk@237155 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/modules/Sanitizer.jsm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/browser/modules/Sanitizer.jsm b/mozilla/browser/modules/Sanitizer.jsm index 5b01d6c1927..4f57ef36377 100644 --- a/mozilla/browser/modules/Sanitizer.jsm +++ b/mozilla/browser/modules/Sanitizer.jsm @@ -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; } },