[webkit-changes] [WebKit/WebKit] 0eeec4: A getDisplayMedia request should cancel any previo...
youennf
noreply at github.com
Wed Oct 9 03:28:21 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0eeec4565988a8fe615c51cc6d29373e54c39cbe
https://github.com/WebKit/WebKit/commit/0eeec4565988a8fe615c51cc6d29373e54c39cbe
Author: Youenn Fablet <youenn at apple.com>
Date: 2024-10-09 (Wed, 09 Oct 2024)
Changed paths:
A LayoutTests/fast/mediastream/getDisplayMedia-successive-call-expected.txt
A LayoutTests/fast/mediastream/getDisplayMedia-successive-call.html
M Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp
Log Message:
-----------
A getDisplayMedia request should cancel any previous getDisplayMedia request that is pending
https://bugs.webkit.org/show_bug.cgi?id=280967
rdar://problem/137417312
Reviewed by Eric Carlson.
It may happen for the surface picker to be cancelled without notifying WebKit.
We have a 60 seconds timer that will make sure the corresponding getDisplayMedia request is denied.
During that time though, the user could make another getDisplayMedia call that we should not delay.
For that reason, we cancel a pending getDisplayMedia call if another one from the same page happens.
* LayoutTests/fast/mediastream/getDisplayMedia-successive-call-expected.txt: Added.
* LayoutTests/fast/mediastream/getDisplayMedia-successive-call.html: Added.
* Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
(WebKit::UserMediaPermissionRequestManagerProxy::requestUserMediaPermissionForFrame):
Canonical link: https://commits.webkit.org/284881@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list