From 43f1dcfac1f21486a11cfa2351bffb52092a07b4 Mon Sep 17 00:00:00 2001 From: Gavin Sharp Date: Fri, 8 May 2009 13:55:05 -0400 Subject: [PATCH] Bug 491955: followup to address mfinkle's review comment (remove hardcoded limit on number of search engines) --- mobile/chrome/content/browser-ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/chrome/content/browser-ui.js b/mobile/chrome/content/browser-ui.js index 527f9e025a5..5eed1f4f36d 100644 --- a/mobile/chrome/content/browser-ui.js +++ b/mobile/chrome/content/browser-ui.js @@ -44,7 +44,6 @@ const TOOLBARSTATE_LOADED = 2; const URLBAR_FORCE = 1; const URLBAR_EDIT = 2; -const kMaxEngines = 4; const kDefaultFavIconURL = "chrome://browser/skin/images/default-favicon.png"; [ @@ -369,7 +368,7 @@ var BrowserUI = { const kXULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var container = this._autocompleteNavbuttons; - for (var e = 0; e < kMaxEngines && e < engines.length; e++) { + for (var e = 0; e < engines.length; e++) { var button = document.createElementNS(kXULNS, "toolbarbutton"); var engine = engines[e]; button.id = engine.name;