| Summary: | WKUIDelegate should provide a hook for page-specific location prompts | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Eugene But <eugenebut> | ||||
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | ahmad.saleem792, dvpdiner2, stefan, stuartmorgan, u1201u | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Eugene But
2015-01-07 14:18:26 PST
Radar ID: 17486671 +1 This would be wonderful to have for Firefox for iOS. Note that this is a security issue, as described in rdar://21289208 Created attachment 462540 [details]
123
The attachment that just was posted got my hopes up but unfortunately it is spam or maybe something malicious. Beware. The newer version of this API would be WKUIDelegate's private `_webView:requestGeolocationPermissionForOrigin:initiatedByFrame:decisionHandler:` SPI method. - (void)_webView:(WKWebView *)webView requestGeolocationPermissionForOrigin:(WKSecurityOrigin*)origin initiatedByFrame:(WKFrameInfo *)frame decisionHandler:(void (^)(WKPermissionDecision decision))decisionHandler WK_API_AVAILABLE(macos(12.0), ios(15.0)); This matches the similar API methods publicly available on WKUIDelegate for handling media capture and device orientation permission prompts. Since this involves public API, I've also submitted it through Feedback Assistant as FB13756330 |