From e88f58dde47296177392c037c5f0c8fb61527ea1 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Fri, 4 May 2007 08:46:23 +0000 Subject: [PATCH] Bug 379571 autocomplete should not try to create empty search sessions r+sr=jag git-svn-id: svn://10.0.0.236/trunk@225575 18797224-902f-48f8-a5cc-f745e15eee43 --- .../autocomplete/resources/content/autocomplete.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml b/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml index 8853dfc362b..64e0cc0ab18 100644 --- a/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml +++ b/mozilla/xpfe/components/autocomplete/resources/content/autocomplete.xml @@ -52,8 +52,10 @@ this.ifSetAttribute("disableKeyNavigation", true); // initialize the search sessions - this.initSearchSessions(); - this.initAutoCompleteSearch(); + if (this.hasAttribute("searchSessions")) + this.initSearchSessions(); + if (this.hasAttribute("autocompletesearch")) + this.initAutoCompleteSearch(); // hack to work around lack of bottom-up constructor calling if ("initialize" in this.resultsPopup)