added "application/x-java-applet" as another MIME type for applets. These should be in a header file somewhere.

This commit is contained in:
beard%netscape.com 1999-05-08 15:19:06 +00:00
parent ec23883af8
commit 1fdc87166b
2 changed files with 4 additions and 4 deletions

View File

@ -1387,8 +1387,8 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
instance->SetWindow(window);
// don't make an initial steam if it's a java applet
if(!aMimeType || PL_strcasecmp(aMimeType, "application/x-java-vm"))
rv = NewEmbededPluginStream(aURL, nsnull, instance);
if(!aMimeType || (PL_strcasecmp(aMimeType, "application/x-java-vm") != 0 && PL_strcasecmp(aMimeType, "application/x-java-applet") != 0))
rv = NewEmbededPluginStream(aURL, nsnull, instance);
NS_RELEASE(instance);
}

View File

@ -1387,8 +1387,8 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbededPlugin(const char *aMimeType,
instance->SetWindow(window);
// don't make an initial steam if it's a java applet
if(!aMimeType || PL_strcasecmp(aMimeType, "application/x-java-vm"))
rv = NewEmbededPluginStream(aURL, nsnull, instance);
if(!aMimeType || (PL_strcasecmp(aMimeType, "application/x-java-vm") != 0 && PL_strcasecmp(aMimeType, "application/x-java-applet") != 0))
rv = NewEmbededPluginStream(aURL, nsnull, instance);
NS_RELEASE(instance);
}