fix for bug #408463: top crash @ nsAutoCompleteController::HandleStartComposition() r=mano, a=blocking-firefox-3+

This commit is contained in:
sspitzer@mozilla.org 2007-12-17 23:20:10 -08:00
Родитель 92a6869573
Коммит fbac33065b
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -339,6 +339,13 @@ nsAutoCompleteController::HandleStartComposition()
// Stop all searches in case they are async. // Stop all searches in case they are async.
StopSearch(); 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; PRBool isOpen;
mInput->GetPopupOpen(&isOpen); mInput->GetPopupOpen(&isOpen);
if (isOpen) if (isOpen)