Bug 538659 - Error : this.input is undefined - bindings.xml#178 [r=mark.finkle]
authorVivien Nicolas <21@vingtetun.org>
Tue, 16 Feb 2010 21:21:13 -0500
changeset 66010 c6e9e321c631167119b3871633600861b7fd7c00
parent 66009 f22d03b66965b2ff2316e76f7d54b6bdd78ed6ce
child 66011 f75a8e58d8c5f2c580f120019b705652affafe33
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmark
bugs538659
Bug 538659 - Error : this.input is undefined - bindings.xml#178 [r=mark.finkle]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -523,16 +523,19 @@ var BrowserUI = {
       return;
 
     BrowserSearch.updateSearchButtons();
 
     this._edit.showHistoryPopup();
   },
 
   closeAutoComplete: function closeAutoComplete(aResetInput) {
+    if (!this.isAutoCompleteOpen())
+      return;
+
     if (aResetInput)
       this._edit.popup.close();
     else
       this._edit.popup.closePopup();
   },
 
   isAutoCompleteOpen: function isAutoCompleteOpen() {
     return this._edit.popup.popupOpen;