зеркало из https://github.com/mozilla/gecko-dev.git
Bug 300572 FF11a2 Crash in [@ js_SetSlotThreadSafe] with new Shockwave Flash beta 8.0 b434
r=jst sr=jst a=shaver
This commit is contained in:
Родитель
57823ec1ef
Коммит
2d9d76dc6a
|
@ -6557,8 +6557,8 @@ StopPluginInstance(PresShell *aShell, nsIContent *aContent)
|
|||
instance->Destroy();
|
||||
instance->SetWindow(nsnull);
|
||||
} else {
|
||||
instance->SetWindow(nsnull);
|
||||
instance->Stop();
|
||||
instance->SetWindow(nsnull);
|
||||
instance->Destroy();
|
||||
}
|
||||
|
||||
|
|
|
@ -1345,7 +1345,11 @@ NPObjWrapperPluginDestroyedCallback(PLDHashTable *table, PLDHashEntryHdr *hdr,
|
|||
|
||||
JSContext *cx = GetJSContext((NPP)arg);
|
||||
|
||||
::JS_SetPrivate(cx, entry->mJSObj, nsnull);
|
||||
if (cx) {
|
||||
::JS_SetPrivate(cx, entry->mJSObj, nsnull);
|
||||
} else {
|
||||
NS_ERROR("dangling entry->mJSObj JSPrivate because we can't find cx");
|
||||
}
|
||||
|
||||
return PL_DHASH_REMOVE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче