Disable suppression of plugin process for Java
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Aug 2013 23:19:17 +0000 (23:19 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Aug 2013 23:19:17 +0000 (23:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=119604

Reviewed by Sam Weinig.

Workaround, the Java plugin doesn't like this.

* PluginProcess/mac/PluginProcessMac.mm:
(WebKit::PluginProcess::platformInitializeProcess):
    - +1 active task count on the java plugin, to inhibit supression.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@153856 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm

index 5bad98a..dd48420 100644 (file)
@@ -1,3 +1,16 @@
+2013-08-08  Gavin Barraclough  <barraclough@apple.com>
+
+        Disable suppression of plugin process for Java
+        https://bugs.webkit.org/show_bug.cgi?id=119604
+
+        Reviewed by Sam Weinig.
+
+        Workaround, the Java plugin doesn't like this.
+
+        * PluginProcess/mac/PluginProcessMac.mm:
+        (WebKit::PluginProcess::platformInitializeProcess):
+            - +1 active task count on the java plugin, to inhibit supression.
+
 2013-08-08  Dean Jackson  <dino@apple.com>
 
         Add logging to the primary plugin detection
index 5bc2929..16bcc8e 100644 (file)
@@ -415,6 +415,10 @@ void PluginProcess::platformInitializeProcess(const ChildProcessInitializationPa
         return;
 
     m_pluginBundleIdentifier = CFBundleGetIdentifier(pluginBundle.get());
+
+    // FIXME: Workaround for Java not liking its plugin process to be supressed - <rdar://problem/14267843>
+    if (m_pluginBundleIdentifier == "com.oracle.java.JavaAppletPlugin")
+        incrementActiveTaskCount();
 }
 
 void PluginProcess::initializeProcessName(const ChildProcessInitializationParameters& parameters)