diff --git a/common/content/liberator.js b/common/content/liberator.js index ab6c9b9f..e2e8f4d1 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: diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js index 8961f2fc..74cf8669 100644 --- a/vimperator/content/bookmarks.js +++ b/vimperator/content/bookmarks.js @@ -259,7 +259,7 @@ function Bookmarks() //{{{ "string", "google", { completer: function completer(context) completion.search(context, true), - validator: Option.validateCompleter + validator: function validator(value) value == "" || Option.validateCompleter.call(this, value) }); options.add(["preload"],