Bug 705931 - FF crashes when you leave/close page with many Java applets (using latest Apple Java updates). r=jst a=akeybl
authorSteven Michaud <smichaud@pobox.com>
Thu, 08 Dec 2011 18:06:38 -0600
changeset 79294 07e3436ad32ae658b57e530a6c626e2d9bfbacff
parent 79290 f5cdfc9cea2ea439bdea43e88d8866fc0baa8ecb
child 79295 77d42322277d9b1c5c6f4fd64cb1c8bbc6b76633
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst, akeybl
bugs705931
milestone9.0
Bug 705931 - FF crashes when you leave/close page with many Java applets (using latest Apple Java updates). r=jst a=akeybl
dom/plugins/base/nsPluginHost.cpp
--- a/dom/plugins/base/nsPluginHost.cpp
+++ b/dom/plugins/base/nsPluginHost.cpp
@@ -227,17 +227,19 @@ PRLogModuleInfo* nsPluginLogging::gNPPLo
 PRLogModuleInfo* nsPluginLogging::gPluginLog = nsnull;
 #endif
 
 #define BRAND_PROPERTIES_URL "chrome://branding/locale/brand.properties"
 #define PLUGIN_PROPERTIES_URL "chrome://global/locale/downloadProgress.properties"
 
 // #defines for plugin cache and prefs
 #define NS_PREF_MAX_NUM_CACHED_INSTANCES "browser.plugins.max_num_cached_plugins"
-#define DEFAULT_NUMBER_OF_STOPPED_INSTANCES 10
+// Raise this from '10' to '50' to work around a bug in Apple's current Java
+// plugins on OS X Lion and SnowLeopard.  See bug 705931.
+#define DEFAULT_NUMBER_OF_STOPPED_INSTANCES 50
 
 #ifdef CALL_SAFETY_ON
 // By default we run OOPP, so we don't want to cover up crashes.
 PRBool gSkipPluginSafeCalls = PR_TRUE;
 #endif
 
 nsIFile *nsPluginHost::sPluginTempDir;
 nsPluginHost *nsPluginHost::sInst;