From c306b471833aeee8c672f5babc585c1b4818eee7 Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Thu, 16 Sep 2010 15:40:49 -0700 Subject: [PATCH] Backed out changeset 080a38bd09c5, bug 596762, a=bustage --- browser/app/profile/firefox.js | 14 ++++++++------ modules/plugin/base/src/nsNPAPIPlugin.cpp | 20 -------------------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js index 4f2a55937b39..58050502e673 100644 --- a/browser/app/profile/firefox.js +++ b/browser/app/profile/firefox.js @@ -934,12 +934,14 @@ pref("toolbar.customization.usesheet", false); // The default for this pref reflects whether the build is capable of IPC. // (Turning it on in a no-IPC build will have no effect.) #ifdef XP_MACOSX -// i386 ipc preferences -pref("dom.ipc.plugins.enabled.i386", false); -pref("dom.ipc.plugins.enabled.i386.flash player.plugin", true); -pref("dom.ipc.plugins.enabled.i386.javaplugin2_npapi.plugin", true); -// x86_64 ipc preferences -pref("dom.ipc.plugins.enabled.x86_64", true); +// OSX still has only partial support for IPC. Note that the PowerPC +// and x86 builds must generate identical copies of this file, so we +// can't make the prefs indicate that IPC is not available at all in +// PowerPC builds. +pref("dom.ipc.plugins.enabled", false); +// These plug-ins will run OOP by default +pref("dom.ipc.plugins.enabled.flash player.plugin", true); +pref("dom.ipc.plugins.enabled.javaplugin2_npapi.plugin", true); #elifdef MOZ_IPC pref("dom.ipc.plugins.enabled", true); #else diff --git a/modules/plugin/base/src/nsNPAPIPlugin.cpp b/modules/plugin/base/src/nsNPAPIPlugin.cpp index e181db3f89a3..b907fe981c7b 100644 --- a/modules/plugin/base/src/nsNPAPIPlugin.cpp +++ b/modules/plugin/base/src/nsNPAPIPlugin.cpp @@ -373,17 +373,7 @@ nsNPAPIPlugin::RunPluginOOP(const nsPluginTag *aPluginTag) prefFile.Cut(0, slashPos + 1); ToLowerCase(prefFile); -#ifdef XP_MACOSX -#if defined(__i386__) - nsCAutoString prefGroupKey("dom.ipc.plugins.enabled.i386."); -#elif defined(__x86_64__) - nsCAutoString prefGroupKey("dom.ipc.plugins.enabled.x86_64."); -#elif defined(__ppc__) - nsCAutoString prefGroupKey("dom.ipc.plugins.enabled.ppc."); -#endif -#else nsCAutoString prefGroupKey("dom.ipc.plugins.enabled."); -#endif PRUint32 prefCount; char** prefNames; @@ -423,17 +413,7 @@ nsNPAPIPlugin::RunPluginOOP(const nsPluginTag *aPluginTag) if (!prefSet) { oopPluginsEnabled = PR_FALSE; -#ifdef XP_MACOSX -#if defined(__i386__) - prefs->GetBoolPref("dom.ipc.plugins.enabled.i386", &oopPluginsEnabled); -#elif defined(__x86_64__) - prefs->GetBoolPref("dom.ipc.plugins.enabled.x86_64", &oopPluginsEnabled); -#elif defined(__ppc__) - prefs->GetBoolPref("dom.ipc.plugins.enabled.ppc", &oopPluginsEnabled); -#endif -#else prefs->GetBoolPref("dom.ipc.plugins.enabled", &oopPluginsEnabled); -#endif } return oopPluginsEnabled;