haikuwebkit/Tools/TestWebKitAPI/Configurations/TestWebKitAPI-iOS.entitlements

15 lines
406 B
Plaintext
Raw Permalink Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>keychain-access-groups</key>
<array>
<string>com.apple.TestWebKitAPI</string>
</array>
Add an entitlement check for service worker on iOS https://bugs.webkit.org/show_bug.cgi?id=182865 <rdar://problem/37505903> Reviewed by Brady Eidson. Source/WebKit: Added an entitlement check to enable service workers on iOS. * Shared/mac/SandboxUtilities.h: * Shared/mac/SandboxUtilities.mm: (WebKit::connectedProcessHasEntitlement): Added. * StorageProcess/StorageProcess.cpp: (WebKit::StorageProcess::createStorageToWebProcessConnection): Enforce the entitlement check by crashing when this code is executed without the parent process having the service worker entitlement. This should never happen unless someone is trying to bypass the entitlement check in UI Process since we ordinarily disable service worker gracefully in WKWebView _initializeWithConfiguration. (WebKit::StorageProcess::swServerForSession): Ditto. (WebKit::StorageProcess::registerSWServerConnection): Ditto. * StorageProcess/StorageProcess.h: (WebKit::StorageProcess::parentProcessHasServiceWorkerEntitlement const): Added. * StorageProcess/ios/StorageProcessIOS.mm: (WebKit::StorageProcess::parentProcessHasServiceWorkerEntitlement const): Added. * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _initializeWithConfiguration:]): Disable the service workers when the entitlement is missing from the current process. The entitlement is enforced by WebContent and Storage process. This check avoids crashing WebContent process and gracefully disabling the feature. * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences): Enforce the entitlement check. * WebProcess/WebPage/WebPage.h: (WebKit::WebPage::parentProcessHasServiceWorkerEntitlement const): Added. * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::parentProcessHasServiceWorkerEntitlement const): Added. Tools: Added the service worker entitlements to WebKitTestRunner and TestWebKitAPI on iOS. * TestWebKitAPI/Configurations/TestWebKitAPI-iOS.entitlements: * WebKitTestRunner/Configurations/WebKitTestRunnerApp-iOS.entitlements: * WebKitTestRunner/Configurations/WebKitTestRunnerApp.xcconfig: * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/198651@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-02-17 00:46:52 +00:00
<key>com.apple.developer.WebKit.ServiceWorkers</key>
<true/>
<key>com.apple.Pasteboard.paste-unchecked</key>
<true/>
</dict>
</plist>