зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1406229 fix autocomplete crash in panels when window is closed during event, r=mak
MozReview-Commit-ID: 6TrLuwrk2nD --HG-- extra : rebase_source : dc6f3dcc13a7fd5063290fdf394d9e7c325441de
This commit is contained in:
Родитель
22d2cdf063
Коммит
49230cedc6
|
@ -367,6 +367,13 @@ nsAutoCompleteController::HandleEnter(bool aIsPopupSelection,
|
||||||
|
|
||||||
// Stop the search, and handle the enter.
|
// Stop the search, and handle the enter.
|
||||||
StopSearch();
|
StopSearch();
|
||||||
|
// StopSearch() can call PostSearchCleanup() which might result
|
||||||
|
// in a blur event, which could null out mInput, so we need to check it
|
||||||
|
// again. See bug #408463 for more details
|
||||||
|
if (!mInput) {
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
EnterMatch(aIsPopupSelection, aEvent);
|
EnterMatch(aIsPopupSelection, aEvent);
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче