[webkit-changes] [WebKit/WebKit] e698fd: Reset UserMediaPermissionRequestManagerProxy grant...
youennf
noreply at github.com
Thu Jul 6 09:28:23 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e698fda415022bf31ba1e39e2b32257960a4cfec
https://github.com/WebKit/WebKit/commit/e698fda415022bf31ba1e39e2b32257960a4cfec
Author: Youenn Fablet <youennf at gmail.com>
Date: 2023-07-06 (Thu, 06 Jul 2023)
Changed paths:
M Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp
M Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.h
M Source/WebKit/UIProcess/WebPageProxy.cpp
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebProcessProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
M Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm
Log Message:
-----------
Reset UserMediaPermissionRequestManagerProxy granted/denied requests in case of a related permission change
https://bugs.webkit.org/show_bug.cgi?id=258915
rdar://111837120
Reviewed by Eric Carlson.
When notified of a camera or microphone permission change, we are now clearing the past granted/denied requests of a given page.
This ensures that we will not grant/deny requests based on the past requests which might be obsolete.
Covered by API tests.
* Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp:
(WebKit::UserMediaPermissionRequestManagerProxy::clearUserMediaPermissionRequestHistory):
* Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.h:
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::clearUserMediaPermissionRequestHistory):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::permissionChanged):
(WebKit::WebProcessProxy::processPermissionChanged):
(WebKit::WebProcessProxy::sendPermissionChanged): Deleted.
* Source/WebKit/UIProcess/WebProcessProxy.h:
* Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:
Canonical link: https://commits.webkit.org/265806@main
More information about the webkit-changes
mailing list