From f2f8cdbea3bee03a4ff4d55cf6e6538ac44c96bd 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 819bc3a3..9ce88e78 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: