Steps to reproduce the problem:
Screencast at https://youtu.be/AQs-L7P62tA
Reproduction steps:
1. Disable location in Android
2. Leave the Location permission enabled for Chrome, given the scary dialog
3. Clear data for all sites
4. Open https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation#Live_Result in Firefox
5. Tap the JSFiddle link
6. In the fiddle, tap "Show my location"
What is the expected behavior?
Firefox handles this situation correctly by supplying the location to the navigator.geolocation.getCurrentPosition() call without having to refresh the page.
What went wrong?
Note how after step 6, the navigator.geolocation.getCurrentPosition() request fails ("Unable to retrieve your location"), without any prompt for location permissions from Chrome. This may or may not be WAI but ideally, Chrome would use the new LocationSettingsRequest.Builder API to let the user grant location permission with a single tap - see https://pinboard.in/u:dandv/b:53350f596e93
7. Enable location at the OS level and verify in Maps
8. Tap "Show my location" again. Chrome will never succeed in supplying the location to the page.
You need to reload the page in order for the location request to succeed (after prompting for permission).
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 58.0.3029.83 Channel: stable
OS Version: 7.1.2 Nexus 5X
Flash Version:
This issue affects all Book-A-Ride partners implementing rideshare Progressive Web Apps.
Comment 1 by krav...@chromium.org
, May 17 2017Status: Assigned (was: Unconfirmed)