<rdar://problem/13819878> Disable SharedWorker when in multiple web process...
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 May 2013 04:23:45 +0000 (04:23 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 May 2013 04:23:45 +0000 (04:23 +0000)
        https://bugs.webkit.org/show_bug.cgi?id=116359

        The condition was accidentally negated, fixing.

        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::WebPlatformStrategies::isAvailable):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp

index f92dcaf..2b9cba8 100644 (file)
@@ -1,3 +1,13 @@
+2013-05-17  Alexey Proskuryakov  <ap@apple.com>
+
+        <rdar://problem/13819878> Disable SharedWorker when in multiple web process model
+        https://bugs.webkit.org/show_bug.cgi?id=116359
+
+        The condition was accidentally negated, fixing.
+
+        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
+        (WebKit::WebPlatformStrategies::isAvailable):
+
 2013-05-17  Gavin Barraclough  <barraclough@apple.com>
 
         Only allow 1 WebProcess to hold a PageCache
index 2fb5441..9a8d708 100644 (file)
@@ -310,7 +310,7 @@ bool WebPlatformStrategies::isAvailable() const
 {
     // Shared workers do not work across multiple processes, and using network process is tied to multiple secondary process model.
 #if ENABLE(NETWORK_PROCESS)
-    return WebProcess::shared().usesNetworkProcess();
+    return !WebProcess::shared().usesNetworkProcess();
 #else
     return true;
 #endif