mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Incorrect GetAttributes/GetParameters for embed/object tag types patch by philanderton@yahoo.com bug 99063 r=peterl sr=attinasi
This commit is contained in:
parent
e080ec8f76
commit
7d881264b3
@ -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?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user