From d0a6dd4ace30cbb5d52fe16d57f5362f0886432a Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Wed, 10 Oct 2007 05:17:11 +0000 Subject: [PATCH] Bug 398894 - "[linux] Firefox prints sanitizing history exception from sanitize.js to console" [p=sylvain.pasche@gmail.com (Sylvain Pasche) r=gavin a=blocking-firefox3+] git-svn-id: svn://10.0.0.236/trunk@237515 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/browser/modules/Sanitizer.jsm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/browser/modules/Sanitizer.jsm b/mozilla/browser/modules/Sanitizer.jsm index f54885774e5..8f8bf8e7b9d 100644 --- a/mozilla/browser/modules/Sanitizer.jsm +++ b/mozilla/browser/modules/Sanitizer.jsm @@ -140,7 +140,10 @@ Sanitizer.prototype = { // Clear last URL of the Open Web Location dialog var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch2); - prefs.clearUserPref("general.open_location.last_url"); + try { + prefs.clearUserPref("general.open_location.last_url"); + } + catch (e) { } }, get canClear()