[Webkit-unassigned] [Bug 222861] New: Geolocation API does not work in WKWebView with custom URL scheme handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 6 07:47:56 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=222861

            Bug ID: 222861
           Summary: Geolocation API does not work in WKWebView with custom
                    URL scheme handler
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ashley at scirra.com

In WKWebView on macOS, the Geolocation API does not work when using a custom URL scheme handler (e.g. myapp://). Attempting to use it returns the error "Origin does not have permission to use Geolocation service". This appears to derive from Geolocation::startRequest() in Source/WebCore/Modules/geolocation/Geolocation.cpp.

In this case window.isSecureContext is true, indicating it is a secure context, but the Geolocation API does not work.

This appears to be similar to issue 220184: previously navigator.mediaDevices was only exposed on the HTTPS scheme, but a fix was made to allow it to be used on other schemes. Perhaps something similar should be done for Geolocation.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210306/d58d2f62/attachment-0001.htm>


More information about the webkit-unassigned mailing list