Add an SPI policy action to allow clients to explicitly ask for a new process on...
[WebKit-https.git] / Source / WebKit / ChangeLog
index fb0aa64..e54ed7f 100644 (file)
@@ -1,3 +1,34 @@
+2018-07-19  Brady Eidson  <beidson@apple.com>
+
+        Add an SPI policy action to allow clients to explicitly ask for a new process on a navigation.
+        https://bugs.webkit.org/show_bug.cgi?id=187789
+
+        Reviewed by Andy Estes.
+
+        At navigation policy time, when a client says "use/allow", they can now say "use/allow in a new process if possible"
+
+        * UIProcess/API/C/WKFramePolicyListener.cpp:
+        (WKFramePolicyListenerUseInNewProcess):
+        (WKFramePolicyListenerUseInNewProcessWithPolicies):
+        * UIProcess/API/C/WKFramePolicyListener.h:
+
+        * UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h:
+
+        * UIProcess/Cocoa/NavigationState.mm:
+        (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction):
+
+        * UIProcess/WebFrameListenerProxy.h:
+        (WebKit::WebFrameListenerProxy::setApplyPolicyInNewProcessIfPossible):
+        (WebKit::WebFrameListenerProxy::applyPolicyInNewProcessIfPossible const):
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::receivedPolicyDecision):
+
+        * UIProcess/WebProcessPool.cpp:
+        (WebKit::WebProcessPool::processForNavigation):
+        (WebKit::WebProcessPool::processForNavigationInternal):
+        * UIProcess/WebProcessPool.h:
+
 2018-07-19  Youenn Fablet  <youenn@apple.com>
 
         Ensure experimentalPlugInSandboxProfilesEnabled is set on PluginProcess