Bug 1293062 - Plugin permissions are confused between Flash and the VLC plugin. Fix this by checking that the plugin name for the special Flash plugin is "Shockwave Flash", which is true of Adobe Flash but not replacement plugins such as VLC or even gnash. This causes other plugins to have their own pref tag so that users can enable/disable them separately. r=jimm

MozReview-Commit-ID: 3sGKO4S3U8U

--HG--
extra : rebase_source : e72b15f6de6e0f8e2c4307f2d37301d138001a86
This commit is contained in:
Benjamin Smedberg 2016-08-24 12:40:17 -04:00
parent 43e77092c9
commit 16258149e3

View File

@ -360,8 +360,12 @@ void nsPluginTag::InitMime(const char* const* aMimeTypes,
mSupportsAsyncInit = true;
break;
case nsPluginHost::eSpecialType_Flash:
mIsFlashPlugin = true;
mSupportsAsyncInit = true;
// VLC sometimes claims to implement the Flash MIME type, and we want
// to allow users to control that separately from Adobe Flash.
if (Name().EqualsLiteral("Shockwave Flash")) {
mIsFlashPlugin = true;
mSupportsAsyncInit = true;
}
break;
case nsPluginHost::eSpecialType_Silverlight:
case nsPluginHost::eSpecialType_Unity: