@@ -9798,7 +9798,7 @@ index 0000000000000000000000000000000000000000..76290475097e756e3d932d22be4d8c79
9798
9798
+
9799
9799
+} // namespace WebKit
9800
9800
diff --git a/Source/WebKit/UIProcess/WebPageProxy.cpp b/Source/WebKit/UIProcess/WebPageProxy.cpp
9801
- index f971f96f4df83ebf505b2ddc4ae27e6ca7d5cc75..7478490cc0a8234569b01ae578a68cff982aa457 100644
9801
+ index f971f96f4df83ebf505b2ddc4ae27e6ca7d5cc75..c9b85dd2fdd274efd594938924e3df27347358bd 100644
9802
9802
--- a/Source/WebKit/UIProcess/WebPageProxy.cpp
9803
9803
+++ b/Source/WebKit/UIProcess/WebPageProxy.cpp
9804
9804
@@ -917,6 +917,7 @@ void WebPageProxy::finishAttachingToWebProcess(ProcessLaunchReason reason)
@@ -10093,18 +10093,21 @@ index f971f96f4df83ebf505b2ddc4ae27e6ca7d5cc75..7478490cc0a8234569b01ae578a68cff
10093
10093
auto request = m_geolocationPermissionRequestManager.createRequest(geolocationID);
10094
10094
Function<void(bool)> completionHandler = [request = WTFMove(request)](bool allowed) {
10095
10095
if (allowed)
10096
- @@ -7871,6 +7971,11 @@ void WebPageProxy::requestGeolocationPermissionForFrame(uint64_t geolocationID,
10097
- else
10096
+ @@ -7872,6 +7972,14 @@ void WebPageProxy::requestGeolocationPermissionForFrame(uint64_t geolocationID,
10098
10097
request->deny();
10099
10098
};
10099
+
10100
10100
+ auto permissions = m_permissionsForAutomation.find(securityOrigin->toString());
10101
+ + if (permissions == m_permissionsForAutomation.end())
10102
+ + permissions = m_permissionsForAutomation.find("*");
10101
10103
+ if (permissions != m_permissionsForAutomation.end()) {
10102
10104
+ completionHandler(permissions->value.contains("geolocation"));
10103
10105
+ return;
10104
10106
+ }
10105
-
10107
+ +
10106
10108
// FIXME: Once iOS migrates to the new WKUIDelegate SPI, clean this up
10107
10109
// and make it one UIClient call that calls the completionHandler with false
10110
+ // if there is no delegate instead of returning the completionHandler
10108
10111
diff --git a/Source/WebKit/UIProcess/WebPageProxy.h b/Source/WebKit/UIProcess/WebPageProxy.h
10109
10112
index b3154548a08b588dfb346261bc7de3dbb754f6cf..4fc0e0fb6e7805d04b86bca46d5098fc69fe32e4 100644
10110
10113
--- a/Source/WebKit/UIProcess/WebPageProxy.h
0 commit comments