Bug 298666 crash [@ nsTypeAheadFind::FindItNow ]

make if block guard crash
r=aaronl sr=shaver a=bsmedberg
This commit is contained in:
timeless%mozdev.org 2005-06-29 02:03:59 +00:00
Родитель a4aa81a4c2
Коммит 1fcc96d6ea
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -1361,10 +1361,11 @@ nsTypeAheadFind::FindItNow(nsIPresShell *aPresShell,
// Get selection controller and selection for new frame/iframe
GetSelection(presShell, getter_AddRefs(mFocusedDocSelCon),
getter_AddRefs(mFocusedDocSelection));
if (!mFocusedDocSelection || !mFocusedDocSelCon) {
// Apparently these can go away even though presshell/prescontext exist
return NS_ERROR_FAILURE;
}
}
if (!mFocusedDocSelection || !mFocusedDocSelCon) {
// Apparently these can go away even though presshell/prescontext exist
return NS_ERROR_FAILURE;
}
// Select the found text and focus it