Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new compatibility mode API on WKNavigation
https://bugs.webkit.org/show_bug.cgi?id=197069 <rdar://problem/50025800> Reviewed by Tim Horton. Source/WebKit: Adds a new property on WKNavigation. * Shared/WebCompatibilityMode.h: Drive-by fix: make this enum class 8 bits wide. * UIProcess/API/APINavigation.h: (API::Navigation::setEffectiveCompatibilityMode): (API::Navigation::effectiveCompatibilityMode const): Add a new member variable to API::Navigation. * UIProcess/API/Cocoa/WKNavigation.h: * UIProcess/API/Cocoa/WKNavigation.mm: * UIProcess/API/Cocoa/WKWebpagePreferences.mm: * UIProcess/API/Cocoa/WKWebpagePreferencesInternal.h: Add various hooks into WebKitAdditions. * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::decidePolicyForNavigationAction): Set API::Navigation's effective compatibility mode. (WebKit::WebPageProxy::effectiveCompatibilityModeAfterAdjustingPolicies): Renamed and refactored this method to return the effective compatibility mode, chosen while adjusting website policies. (WebKit::WebPageProxy::adjustPoliciesForCompatibilityMode): Deleted. * UIProcess/WebPageProxy.h: Tools: Add a block property for -didCommitNavigation to TestNavigationDelegate. * TestWebKitAPI/cocoa/TestNavigationDelegate.h: * TestWebKitAPI/cocoa/TestNavigationDelegate.mm: (-[TestNavigationDelegate webView:didCommitNavigation:]): Canonical link: https://commits.webkit.org/211326@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
12 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters