From 35357693054fabe49f37bd2f0df55f53d963f12f Mon Sep 17 00:00:00 2001 From: "rob_strong%exchangecode.com" Date: Wed, 5 Oct 2005 19:42:00 +0000 Subject: [PATCH] Bug 311169 - typo in sanitize.js pref call (nsIBranch instead of nsIPrefBranch from bug 284086). r=mconnnor --- browser/base/content/sanitize.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/browser/base/content/sanitize.js b/browser/base/content/sanitize.js index 2da920fa8ef..3bb707ef66a 100644 --- a/browser/base/content/sanitize.js +++ b/browser/base/content/sanitize.js @@ -110,7 +110,7 @@ Sanitizer.prototype = { // for details on how we guess the cache directory try { cacheDir = cc["@mozilla.org/preferences-service;1"] - .getService(ci.nsIBranch) + .getService(ci.nsIPrefBranch) .getComplexValue("browser.cache.disk.parent_directory", ci.nsILocalFile); } catch(er) { @@ -137,8 +137,10 @@ Sanitizer.prototype = { } catch(er) {} } - // The "nice" way - cacheService.evictEntries(ci.nsICache.STORE_ANYWHERE); + try { + // The "nice" way + cacheService.evictEntries(ci.nsICache.STORE_ANYWHERE); + } catch(er) {} },