mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 07:37:59 +01:00
Don't hide errors on bad URLs, they're useful feedback
This commit is contained in:
@@ -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) {}
|
||||
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) {}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user