bug 518390 - symbol key clears the url bar r=mfinkle
authorBrad Lassey <blassey@mozilla.com>
Thu, 05 Nov 2009 17:02:22 -0500
changeset 65762 e1515b733a83a7f603d9708d75e2cdfaee1ac5d9
parent 65761 d69de160bd77270378ab1ed27c79d4e82a57be6e
child 65763 b88c0936cce1c98359169e941148267b3086fe4b
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)
reviewersmfinkle
bugs518390
bug 518390 - symbol key clears the url bar r=mfinkle
mobile/chrome/content/bindings.xml
--- a/mobile/chrome/content/bindings.xml
+++ b/mobile/chrome/content/bindings.xml
@@ -72,21 +72,17 @@
           <xul:autocompleteresult/>
           <xul:autocompleteresult/>
           <xul:autocompleteresult/>
         </xul:scrollbox>
         <children/>
       </xul:vbox>
     </content>
 
-    <implementation implements="nsIAutoCompletePopup, nsIDOMEventListener">
-      <constructor><![CDATA[
-        window.addEventListener("blur", this, true);
-      ]]></constructor>
-
+    <implementation implements="nsIAutoCompletePopup">
       <!-- Used by the chrome input handler -->
       <property name="boxObject"
                 readonly="true"
                 onget="return this._items.boxObject;"/>
 
       <field name="_scrollBoxObject">
         this.boxObject.QueryInterface(Components.interfaces.nsIScrollBoxObject);
       </field>
@@ -308,30 +304,16 @@
       <property name="_matchCount"
                 readonly="true">
         <getter><![CDATA[
           let matchCount = this.input.controller.matchCount;
           return matchCount + (this._allBookmarksItem._hidden ? 0 : 1);
         ]]></getter>
       </property>
 
-      <!-- Handles blur events on the window while the popup is open. -->
-      <method name="handleEvent">
-        <parameter name="aEvent"/>
-        <body><![CDATA[
-          if (aEvent.type == "blur") {
-            if (this._popupOpen)
-              this.close();
-          } else {
-            Components.utils.reportError("autocomplete popup received " +
-                                         "unexpected event: " + aEvent.type);
-          }
-        ]]></body>
-      </method>
-
       <method name="_styleItem">
         <parameter name="aItem"/>
         <parameter name="aAddStyle"/>
         <body><![CDATA[
           if (aAddStyle)
             aItem.className += " autocompleteresult-selected";
           else
             aItem.className = aItem.className.replace(/\s*autocompleteresult-selected/, "");