Fixing some plugins don't understand the DATA attribute on the OBJECT tag so in those cases copy that value to an appened "SRC" entry to the array of attributes/parameters plugins are passed. Bug 152334 r=av sr=waterson
git-svn-id: svn://10.0.0.236/trunk@124153 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3489,10 +3489,8 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
|
||||
|
||||
if(pti) {
|
||||
const char *value;
|
||||
if(tagType == nsPluginTagType_Embed)
|
||||
havedata = NS_SUCCEEDED(pti->GetAttribute("SRC", &value));
|
||||
if(tagType == nsPluginTagType_Object)
|
||||
havedata = NS_SUCCEEDED(pti->GetAttribute("DATA", &value));
|
||||
havedata = NS_SUCCEEDED(pti->GetAttribute("SRC", &value));
|
||||
// no need to check for "data" as it would have been converted to "src"
|
||||
}
|
||||
|
||||
if(havedata && !isJava && bCanHandleInternally)
|
||||
|
||||
Reference in New Issue
Block a user