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
This commit is contained in:
reed%reedloden.com
2007-10-10 05:17:11 +00:00
parent fb7b2d3e63
commit d0a6dd4ace

View File

@@ -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()