Geolocation requests should not be blocked when the security origin is local.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 May 2017 08:08:45 +0000 (08:08 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 May 2017 08:08:45 +0000 (08:08 +0000)
commit92d022e7bb1549fad928cc52cb3cff3e20118813
tree0a48fc63ba1e53eb03fd8b14a5a8b34f80122869
parent537e74141d8cc45344f382e030d01e0cfc69b353
Geolocation requests should not be blocked when the security origin is local.
https://bugs.webkit.org/show_bug.cgi?id=171857
Source/WebCore:

rdar://problem/29318409

Reviewed by Brent Fulgham.

Geolocation requests from security origins where the url scheme is registered as local,
should not be blocked. This applies to the file url scheme, but also to other local url
schemes.

Test: fast/misc/geolocation-local-security-origin.html

* Modules/geolocation/Geolocation.cpp:
(WebCore::Geolocation::shouldBlockGeolocationRequests):

LayoutTests:

Reviewed by Brent Fulgham.

* fast/misc/geolocation-local-security-origin-expected.txt: Added.
* fast/misc/geolocation-local-security-origin.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/misc/geolocation-local-security-origin-expected.txt [new file with mode: 0644]
LayoutTests/fast/misc/geolocation-local-security-origin.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/geolocation/Geolocation.cpp