mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 558434 - Winless, transparent, silverlight doesn't display correctly. r=josh.
This commit is contained in:
parent
5dfd6a235c
commit
6c7c3fa12a
@ -1436,6 +1436,18 @@ nsresult nsNPAPIPluginInstance::GetCallbacks(const NPPluginFuncs ** aCallbacks)
|
||||
NPError nsNPAPIPluginInstance::SetWindowless(PRBool aWindowless)
|
||||
{
|
||||
mWindowless = aWindowless;
|
||||
|
||||
if (mMIMEType) {
|
||||
// bug 558434 - Prior to 3.6.4, we assumed windowless was transparent.
|
||||
// Silverlight apparently relied on this quirk, so we default to
|
||||
// transparent unless they specify otherwise after setting the windowless
|
||||
// property. (Last tested version: sl 3.0).
|
||||
NS_NAMED_LITERAL_CSTRING(silverlight, "application/x-silverlight");
|
||||
if (!PL_strncasecmp(mMIMEType, silverlight.get(), silverlight.Length())) {
|
||||
mTransparent = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return NPERR_NO_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user