Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3b4fe5b10cbb62c8be81aaf67b0c86a40dfbaccf
https://github.com/WebKit/WebKit/commit/3b4fe5b10cbb62c8be81aaf67b0c86a40dfbaccf
Author: Marcos Caceres <[email protected]>
Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
M Source/WebKit/UIProcess/ios/WKGeolocationProviderIOS.mm
M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/Geolocation.mm
Log Message:
-----------
Use requesting origin instead of active origin for Geolocation permission
prompt
<rdar://problem/183281228>
https://bugs.webkit.org/show_bug.cgi?id=306286
Reviewed by Chris Dumez.
The Geolocation permission prompt derived the origin it displays from the
page's active
(provisional) navigation URL rather than from the request's origin, so a page
could start a
navigation to another origin and have the prompt attribute the request to that
origin while
the requesting document kept running. Use the request's top-level origin
(frameInfo.topOrigin)
for both the WKUIDelegate prompt and the built-in iOS provider prompt, matching
the
DeviceOrientation permission prompt.
Originally-landed-as: 316606.259@safari-7625-branch (8f8dbbfd88ca).
rdar://187506915
Canonical link: https://commits.webkit.org/321544@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications