зеркало из https://github.com/mozilla/pjs.git
Try to fix crashes possibly caused by bug 359790, r=aaronl
This commit is contained in:
Родитель
931e6533c5
Коммит
17ff28f9d6
|
@ -1359,12 +1359,12 @@ nsresult nsHyperTextAccessible::GetSelections(nsISelectionController **aSelCon,
|
|||
if (editor) {
|
||||
if (aSelCon) {
|
||||
editor->GetSelectionController(aSelCon);
|
||||
NS_ENSURE_TRUE(aSelCon, NS_ERROR_FAILURE);
|
||||
NS_ENSURE_TRUE(*aSelCon, NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
if (aDomSel) {
|
||||
editor->GetSelection(aDomSel);
|
||||
NS_ENSURE_TRUE(aDomSel, NS_ERROR_FAILURE);
|
||||
NS_ENSURE_TRUE(*aDomSel, NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче