Incorrect GetAttributes/GetParameters for embed/object tag types patch by philanderton@yahoo.com bug 99063 r=peterl sr=attinasi

git-svn-id: svn://10.0.0.236/trunk@103608 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2001-09-24 04:35:02 +00:00
parent 4439e39364
commit 8e2a74ee6c

View File

@@ -769,11 +769,17 @@ nsresult ns4xPluginInstance::InitializePlugin(nsIPluginInstancePeer* peer)
mPeer = peer;
nsCOMPtr<nsIPluginTagInfo> taginfo = do_QueryInterface(mPeer, &rv);
nsCOMPtr<nsIPluginTagInfo2> taginfo = do_QueryInterface(mPeer, &rv);
if (NS_SUCCEEDED(rv))
taginfo->GetAttributes(count, names, values);
{
nsPluginTagType tagtype;
taginfo->GetTagType(&tagtype);
if (tagtype == nsPluginTagType_Embed)
taginfo->GetAttributes(count, names, values);
else // nsPluginTagType_Object
taginfo->GetParameters(count, names, values);
}
if (fCallbacks->newp == nsnull)
return NS_ERROR_FAILURE; // XXX right error?