зеркало из https://github.com/mozilla/gecko-dev.git
Bug 298666 crash [@ nsTypeAheadFind::FindItNow ]
make if block guard crash r=aaronl sr=shaver a=bsmedberg
This commit is contained in:
Родитель
a4aa81a4c2
Коммит
1fcc96d6ea
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче