From 564ed266cf266926f5188dc15fa2da0dbec65445 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Mon, 8 Dec 2008 18:51:51 +0100 Subject: [PATCH] fixed :open keyword --- common/content/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/util.js b/common/content/util.js index dfcd4468..98233123 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -485,7 +485,7 @@ const util = { //{{{ // or starts with a known protocol try opening it with a search engine // or keyword bookmark let proto = url.match(/^(\w+):/); - if (/\s/.test(url) || (proto && !Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]])) + if (/\s/.test(url) || !proto || !Components.classes["@mozilla.org/network/protocol;1?name=" + proto[1]]) { // TODO: it would be clearer if the appropriate call to // getSearchURL was made based on whether or not the first word was