This commit is contained in:
av%netscape.com 2000-06-22 23:17:50 +00:00
Родитель 906793334d
Коммит 1c2f557756
2 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -1649,9 +1649,10 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
rv = pti2->GetTagType(&tagType);
// PENDING(edburns): do we need to check for nsPluginTagType_Object?
if((rv != NS_OK) || !((tagType == nsPluginTagType_Embed)
|| (tagType == nsPluginTagType_Applet))) {
|| (tagType == nsPluginTagType_Applet)
|| (tagType == nsPluginTagType_Object)))
{
return rv;
}
@ -1699,6 +1700,10 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
// but before we return an error let's see if this is an <embed>
// tag and try to launch the default plugin
// but to comply with the spec don't do it for <object> tag
if(tagType == nsPluginTagType_Object)
return rv;
nsresult result;
result = SetUpDefaultPluginInstance(aMimeType, aURL, aOwner);

Просмотреть файл

@ -1649,9 +1649,10 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
rv = pti2->GetTagType(&tagType);
// PENDING(edburns): do we need to check for nsPluginTagType_Object?
if((rv != NS_OK) || !((tagType == nsPluginTagType_Embed)
|| (tagType == nsPluginTagType_Applet))) {
|| (tagType == nsPluginTagType_Applet)
|| (tagType == nsPluginTagType_Object)))
{
return rv;
}
@ -1699,6 +1700,10 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
// but before we return an error let's see if this is an <embed>
// tag and try to launch the default plugin
// but to comply with the spec don't do it for <object> tag
if(tagType == nsPluginTagType_Object)
return rv;
nsresult result;
result = SetUpDefaultPluginInstance(aMimeType, aURL, aOwner);