зеркало из https://github.com/mozilla/gecko-dev.git
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 : cae64af30bd20223793331228412107efddfa7e9 extra : source : 582b6337bb53f907d7984555794ffe8310843f7b
This commit is contained in:
Родитель
d7b19b0d0a
Коммит
2691f98a20
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче