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:
peterlubczynski%netscape.com
2002-06-27 01:51:34 +00:00
parent cba309a0c0
commit bb8b77bf2b
3 changed files with 46 additions and 10 deletions

View File

@@ -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)