mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 09:27: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)
|
switch (where)
|
||||||
{
|
{
|
||||||
case liberator.CURRENT_TAB:
|
case liberator.CURRENT_TAB:
|
||||||
try
|
getBrowser().loadURIWithFlags(url, Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null, postdata);
|
||||||
{
|
|
||||||
getBrowser().loadURIWithFlags(url, Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null, postdata);
|
|
||||||
}
|
|
||||||
catch (e) {}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case liberator.NEW_BACKGROUND_TAB:
|
case liberator.NEW_BACKGROUND_TAB:
|
||||||
@@ -1111,11 +1107,7 @@ const liberator = (function () //{{{
|
|||||||
const wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
|
const wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
|
||||||
window.open();
|
window.open();
|
||||||
whichwindow = wm.getMostRecentWindow("navigator:browser");
|
whichwindow = wm.getMostRecentWindow("navigator:browser");
|
||||||
try
|
whichwindow.loadURI(url, null, postdata);
|
||||||
{
|
|
||||||
whichwindow.loadURI(url, null, postdata);
|
|
||||||
}
|
|
||||||
catch (e) {}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user