зеркало из https://github.com/mozilla/pjs.git
fix for bug #198624
bulletproof for crasher in nsHTMLEditor::HideResizers() r=brade,sr=kin
This commit is contained in:
Родитель
aa6a147de8
Коммит
bb2efc3630
|
@ -618,9 +618,14 @@ nsHTMLEditor::HideResizers(void)
|
|||
nsCOMPtr<nsIDOMNode> parentNode;
|
||||
res = mResizedObject->GetParentNode(getter_AddRefs(parentNode));
|
||||
erP = do_QueryInterface(parentNode);
|
||||
res = erP->RemoveEventListener(NS_LITERAL_STRING("DOMNodeRemoved"), mMutationListenerP, PR_FALSE);
|
||||
NS_ASSERTION(NS_SUCCEEDED(res), "failed to remove NodeRemoved event listener");
|
||||
|
||||
NS_ASSERTION(erP, "Failed to get event receiver!");
|
||||
if (erP)
|
||||
{
|
||||
res = erP->RemoveEventListener(NS_LITERAL_STRING("DOMNodeRemoved"),
|
||||
mMutationListenerP, PR_FALSE);
|
||||
NS_ASSERTION(NS_SUCCEEDED(res),
|
||||
"failed to remove NodeRemoved event listener");
|
||||
}
|
||||
mMutationListenerP = nsnull;
|
||||
|
||||
res = GetDOMEventReceiver(getter_AddRefs(erP));
|
||||
|
|
Загрузка…
Ссылка в новой задаче