Add plumbing for a compatibility mode preference in WebKit
[WebKit-https.git] / Source / WebKit / ChangeLog
index a4e24b1..d1083e9 100644 (file)
@@ -1,3 +1,24 @@
+2019-04-03  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Add plumbing for a compatibility mode preference in WebKit
+        https://bugs.webkit.org/show_bug.cgi?id=196005
+
+        Reviewed by Tim Horton.
+
+        Add plumbing between the Cocoa API object (WKWebpagePreferences) and the inner C++ API object
+        (API::WebsitePolicies) for compatibility mode.
+
+        * Shared/WebCompatibilityMode.h: Added.
+        * UIProcess/API/APIWebsitePolicies.h:
+        * UIProcess/API/Cocoa/WKWebpagePreferences.mm:
+        * UIProcess/Cocoa/NavigationState.mm:
+        (WebKit::NavigationState::NavigationClient::decidePolicyForNavigationAction):
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::adjustPoliciesForCompatibilityMode):
+        * UIProcess/WebPageProxy.h:
+        * UIProcess/ios/WebPageProxyIOS.mm:
+        * WebKit.xcodeproj/project.pbxproj:
+
 2019-04-03  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [CoordinatedGraphics] Hidden pages are not suspended after a web view resize