bug 518390 - symbol key clears the url bar r=mfinkle
--- 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/, "");