Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 769721 - Minimal patch to force OOPP mode on for Windows Vista+ u…
Browse files Browse the repository at this point in the history
…sers, because Flash is not tested with the IPP configuration and has known bugs, r=josh a=akeybl
  • Loading branch information
bsmedberg committed Jul 3, 2012
1 parent ad19684 commit d7e0a41
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions dom/plugins/base/nsNPAPIPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,20 @@ static bool GMA9XXGraphics()
}
#endif

#ifdef XP_WIN
static bool
IsVistaOrLater()
{
OSVERSIONINFO info;

ZeroMemory(&info, sizeof(OSVERSIONINFO));
info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&info);

return info.dwMajorVersion >= 6;
}
#endif

bool
nsNPAPIPlugin::RunPluginOOP(const nsPluginTag *aPluginTag)
{
Expand All @@ -323,6 +337,14 @@ nsNPAPIPlugin::RunPluginOOP(const nsPluginTag *aPluginTag)
return false;
}

#ifdef XP_WIN
// On Windows Vista+, we force Flash to run in OOPP mode because Adobe
// doesn't test Flash in-process and there are known stability bugs.
if (aPluginTag->mIsFlashPlugin && IsVistaOrLater()) {
return true;
}
#endif

#if defined(XP_MACOSX) && defined(__i386__)
// Only allow on Mac OS X 10.6 or higher.
if (OSXVersion() < 0x00001060) {
Expand Down

0 comments on commit d7e0a41

Please sign in to comment.