added "application/x-java-applet" as another MIME type for applets. These should be in a header file somewhere.
git-svn-id: svn://10.0.0.236/trunk@30822 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user