Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aba0a6a26b7555b95b7ee372625655a8661b0e4e
https://github.com/WebKit/WebKit/commit/aba0a6a26b7555b95b7ee372625655a8661b0e4e
Author: Andy Estes <[email protected]>
Date: 2026-07-24 (Fri, 24 Jul 2026)
Changed paths:
M Tools/TestWebKitAPI/Helpers/cocoa/UserMediaCaptureUIDelegate.h
M Tools/TestWebKitAPI/Helpers/cocoa/UserMediaCaptureUIDelegate.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm
Log Message:
-----------
[Site Isolation] Expand test coverage for per-site camera, microphone, and
autoplay policies in cross-origin frames
https://bugs.webkit.org/show_bug.cgi?id=320203
rdar://183150290
Reviewed by Eric Carlson.
Filled in two gaps in test coverage identified by Claude:
1. Test that
-webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:
is called with the correct frame info when permission is requested from a
cross-origin frame,
and that the delegate can deny such requests.
2. Test that the main frame's autoplay policy takes precedence when evaluating
autoplay policy in a
cross-origin frame.
* Tools/TestWebKitAPI/Helpers/cocoa/UserMediaCaptureUIDelegate.h:
* Tools/TestWebKitAPI/Helpers/cocoa/UserMediaCaptureUIDelegate.mm:
(-[UserMediaCaptureUIDelegate init]):
(-[UserMediaCaptureUIDelegate setDecision:forFrameHost:]):
(-[UserMediaCaptureUIDelegate lastRequestFrameHost]):
(-[UserMediaCaptureUIDelegate
webView:requestMediaCapturePermissionForOrigin:initiatedByFrame:type:decisionHandler:]):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::TEST(SiteIsolation,
MediaCapturePermissionUsesRemoteFrameOrigin)):
(TestWebKitAPI::TEST(SiteIsolation,
AutoplayPolicyInRemoteFrameFollowsMainFrame)):
Canonical link: https://commits.webkit.org/317913@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications