From e6d83bd03932982e8d2336348ee0fe0b7273d83b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 18 Dec 2008 21:41:56 -0500 Subject: [PATCH] Don't hide errors on bad URLs, they're useful feedback --- common/content/liberator.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/common/content/liberator.js b/common/content/liberator.js index e2e8f4d1..ab6c9b9f 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -1090,11 +1090,7 @@ const liberator = (function () //{{{ switch (where) { case liberator.CURRENT_TAB: - try - { - getBrowser().loadURIWithFlags(url, Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null, postdata); - } - catch (e) {} + getBrowser().loadURIWithFlags(url, Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null, postdata); break; case liberator.NEW_BACKGROUND_TAB: @@ -1111,11 +1107,7 @@ const liberator = (function () //{{{ const wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); window.open(); whichwindow = wm.getMostRecentWindow("navigator:browser"); - try - { - whichwindow.loadURI(url, null, postdata); - } - catch (e) {} + whichwindow.loadURI(url, null, postdata); break; default: