Bug 491955: followup to address mfinkle's review comment (remove hardcoded limit on number of search engines)

This commit is contained in:
Gavin Sharp 2009-05-08 13:55:05 -04:00
parent 267903d8c5
commit 43f1dcfac1

View File

@ -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;