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