Skip to content
Permalink
Browse files
[macOS] 3 TestWebKitAPI.GetDisplayMediaTest API tests time out
https://bugs.webkit.org/show_bug.cgi?id=240813
rdar://92831194

Reviewed by Youenn Fablet.

* Source/WebKit/UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::decidePolicyForUserMediaPermissionRequest): Don't
prompt for getDisplayMedia if the UI delegate implements the old SPI.

Canonical link: https://commits.webkit.org/250883@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
eric-carlson committed May 23, 2022
1 parent 0062ea6 commit e612652d1d40d383863dd47540d5f38ede6601c7
Showing 1 changed file with 7 additions and 4 deletions.
@@ -1264,12 +1264,15 @@ static _WKResourceLimit toWKResourceLimit(WKResourceLimit limit)
}

if (request.requiresDisplayCapture() && request.canPromptForGetDisplayMedia()) {
if (respondsToRequestDisplayCapturePermissionForOrigin)
if (respondsToRequestDisplayCapturePermissionForOrigin) {
promptForDisplayCapturePermission(page, frame, userMediaOrigin, topLevelOrigin, request);
else
request.promptForGetDisplayMedia();
return;
}

return;
if (!respondsToRequestUserMediaAuthorizationForDevices) {
request.promptForGetDisplayMedia();
return;
}
}

if (!respondsToRequestUserMediaAuthorizationForDevices) {

0 comments on commit e612652

Please sign in to comment.