Bug 747668. (Bv1) Port |Bug 418712 - nsIAutoCompleteInput should fire an event when a search begins| to SeaMonkey. r=neil.

DONTBUILD (a=npotb).
This commit is contained in:
Serge Gautherie 2012-04-23 01:28:55 +02:00
parent b15550b1c7
commit b67451d688

View File

@ -139,6 +139,12 @@
onset="this.setAttribute('timeout', val); return val;"
onget="return parseInt(this.getAttribute('timeout')) || 0;"/>
<method name="onSearchBegin">
<body><![CDATA[
this._fireEvent("searchbegin");
]]></body>
</method>
<!-- =================== nsIDOMXULMenuListElement =================== -->
<property name="editable" readonly="true"
@ -660,6 +666,9 @@
this.mFailureItems = 0;
this.mDefaultMatchFilled = false; // clear out our prefill state.
// Notify the input that the search is beginning.
this.onSearchBegin();
// tell each session to start searching...
for (var name in this.mSessions)
try {