зеркало из https://github.com/mozilla/gecko-dev.git
fix for bug #408463: top crash @ nsAutoCompleteController::HandleStartComposition() r=mano, a=blocking-firefox-3+
This commit is contained in:
Родитель
92a6869573
Коммит
fbac33065b
|
@ -339,6 +339,13 @@ nsAutoCompleteController::HandleStartComposition()
|
|||
// Stop all searches in case they are async.
|
||||
StopSearch();
|
||||
|
||||
if (!mInput) {
|
||||
// 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
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PRBool isOpen;
|
||||
mInput->GetPopupOpen(&isOpen);
|
||||
if (isOpen)
|
||||
|
|
Загрузка…
Ссылка в новой задаче