diff --git a/common/content/find.js b/common/content/find.js index b7f9869c..794476ac 100644 --- a/common/content/find.js +++ b/common/content/find.js @@ -288,6 +288,7 @@ function Search() //{{{ "Find word under cursor", function () { + found = false; search.searchSubmitted(buffer.getCurrentWord(), false); search.findAgain(); }); @@ -296,6 +297,7 @@ function Search() //{{{ "Find word under cursor backwards", function () { + found = false; search.searchSubmitted(buffer.getCurrentWord(), true); search.findAgain(); }); diff --git a/common/content/liberator.js b/common/content/liberator.js index 9ce88e78..819bc3a3 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -1090,7 +1090,11 @@ const liberator = (function () //{{{ switch (where) { case liberator.CURRENT_TAB: - getBrowser().loadURIWithFlags(url, Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null, postdata); + try + { + getBrowser().loadURIWithFlags(url, Ci.nsIWebNavigation.LOAD_FLAGS_NONE, null, null, postdata); + } + catch (e) {} break; case liberator.NEW_BACKGROUND_TAB: @@ -1107,7 +1111,11 @@ const liberator = (function () //{{{ const wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); window.open(); whichwindow = wm.getMostRecentWindow("navigator:browser"); - whichwindow.loadURI(url, null, postdata); + try + { + whichwindow.loadURI(url, null, postdata); + } + catch (e) {} break; default: