зеркало из https://github.com/mozilla/gecko-dev.git
Bug 825620 - Refactor plugin quirks on OSX to properly initialize values. r=smichaud
This commit is contained in:
Родитель
8ba2e8f1c3
Коммит
ad1950e893
|
@ -181,10 +181,6 @@ PluginModuleChild::Init(const std::string& aPluginFilename,
|
|||
}
|
||||
#else // defined(OS_MACOSX)
|
||||
mozilla::plugins::PluginUtilsOSX::SetProcessName(info.fName);
|
||||
NS_NAMED_LITERAL_CSTRING(flashHead, "Shockwave Flash");
|
||||
if (StringBeginsWith(nsDependentCString(info.fDescription), flashHead)) {
|
||||
AddQuirk(QUIRK_FLASH_AVOID_CGMODE_CRASHES);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!mLibrary)
|
||||
|
@ -1997,6 +1993,9 @@ PluginModuleChild::InitQuirksModes(const nsCString& aMimeType)
|
|||
// Whitelist Flash and Quicktime to support offline renderer
|
||||
NS_NAMED_LITERAL_CSTRING(flash, "application/x-shockwave-flash");
|
||||
NS_NAMED_LITERAL_CSTRING(quicktime, "QuickTime Plugin.plugin");
|
||||
if (FindInReadable(flash, aMimeType)) {
|
||||
mQuirks |= QUIRK_FLASH_AVOID_CGMODE_CRASHES;
|
||||
}
|
||||
if (FindInReadable(flash, aMimeType) ||
|
||||
FindInReadable(quicktime, mPluginFilename)) {
|
||||
mQuirks |= QUIRK_ALLOW_OFFLINE_RENDERER;
|
||||
|
|
Загрузка…
Ссылка в новой задаче