DescriptionReflect device status in geolocation permissions.request calls.
In some situations origins may have geolocation permission, but the user
will see prompts, or geolocation won't work. In these cases, the
permissions API should indicate this, with either ASK or DENIED.
The situations are as follows:
1. When the device has location turned off
2. When Chrome does not have geolocation permission at the Androd level.
In both of these cases, Chrome may be able to prompt the user to rectify
the problem and if possible will do so when permission is requested.
This patch does not correctly model the second situation, as the plumbing
required to see if Chrome is allowed to prompt is not implemented. In
this case prompt is always return ASK, even if Chrome cannot prompt and
requests will fail. This is better than returning GRANTED however, as
it is closer to the truth.
BUG=672301
Review-Url: https://codereview.chromium.org/2743603002
Cr-Commit-Position: refs/heads/master@{#456003}
Committed: https://chromium.googlesource.com/chromium/src/+/59547521e04b9b5ec38d51588d7eab562ac0c630
Patch Set 1 #Patch Set 2 : Self review #
Total comments: 10
Patch Set 3 : Feedback #
Total comments: 1
Messages
Total messages: 14 (8 generated)
|