зеркало из https://github.com/mozilla/pjs.git
322725 don't assume that all elements with tagname object implement
nsIObjectLoadingContent r=bryner sr=bz
This commit is contained in:
Родитель
0380d15a8f
Коммит
39b69ed94c
|
@ -6223,7 +6223,9 @@ static void
|
||||||
StartPluginInstance(PresShell *aShell, nsIContent *aContent)
|
StartPluginInstance(PresShell *aShell, nsIContent *aContent)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIObjectLoadingContent> objlc(do_QueryInterface(aContent));
|
nsCOMPtr<nsIObjectLoadingContent> objlc(do_QueryInterface(aContent));
|
||||||
NS_ASSERTION(objlc, "Object nodes must implement nsIObjectLoadingContent");
|
if (!objlc)
|
||||||
|
return;
|
||||||
|
|
||||||
nsCOMPtr<nsIPluginInstance> inst;
|
nsCOMPtr<nsIPluginInstance> inst;
|
||||||
objlc->EnsureInstantiation(getter_AddRefs(inst));
|
objlc->EnsureInstantiation(getter_AddRefs(inst));
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче