Bug 1311998 - [One-off searches] Right click on a result from Awesomebar closes the dropdown. r=mak

MozReview-Commit-ID: Ieqceceepix

--HG--
extra : rebase_source : de8480a08777b982625648b934b30aec942f7416
This commit is contained in:
Drew Willcoxon 2016-10-27 19:44:22 -07:00
parent c1f7613ca2
commit 05cb668dad

View File

@ -1367,6 +1367,19 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
onget="return this._overrideValue;"
onset="this._overrideValue = val; return val;"/>
<method name="onPopupClick">
<parameter name="aEvent"/>
<body><![CDATA[
if (aEvent.button == 2) {
// Ignore right-clicks.
return;
}
// Otherwise "call super" -- do what autocomplete-base-popup does.
let controller = this.view.QueryInterface(Components.interfaces.nsIAutoCompleteController);
controller.handleEnter(true, aEvent);
]]></body>
</method>
<method name="enableOneOffSearches">
<parameter name="enable"/>
<body><![CDATA[