зеркало из https://github.com/mozilla/pjs.git
Bug 446678 Fix test_autocomplete2.xul crashing on SeaMonkey, and fix the test by implementing the searchcomplete event. crash patch by Neil,r=me,other changes by me,r/sr=Neil.
This commit is contained in:
Родитель
d4f072c53b
Коммит
d493789ba5
|
@ -727,7 +727,7 @@
|
|||
}
|
||||
this.noMatch = failed;
|
||||
if (this.noMatch)
|
||||
this.setAttribute("nomatch", 1);
|
||||
this.setAttribute("nomatch", true);
|
||||
else
|
||||
this.removeAttribute("nomatch");
|
||||
|
||||
|
@ -742,6 +742,9 @@
|
|||
if (defaultSession)
|
||||
this.autoFillInput(defaultSession, this.mLastResults[defaultSession], true);
|
||||
}
|
||||
|
||||
// Now we've finished, fire an event to let everyone know
|
||||
this._fireEvent("searchcomplete");
|
||||
]]></body>
|
||||
</method>
|
||||
|
||||
|
@ -1372,7 +1375,7 @@
|
|||
try {
|
||||
if (aCol.id == "treecolAutoCompleteValue") {
|
||||
var className = this.mTextbox.getResultAt(aIndex).className;
|
||||
if ( className != "" ) {
|
||||
if ( className ) {
|
||||
aProperties.AppendElement(this.createAtom(className));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче