-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: opt into location services once device service has been started #14253
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a test of the geolocation API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish we could add a test, but sadly I'm 99% sure new payment models for API keys mean that we currently can't :(
Let's add a follow-up issue to see if we can circle back to and address that but for now if it's locally tested to work i'd rather get it out in the next beta
@codebytere its possible to mock the geolocation response for our tests, will update the PR shortly. |
85a0553
to
8141cd5
Compare
@alexeykuzmin have added the specs, #14263 needs to be verified and merged before this PR since the specs and implementation rely on it. |
8141cd5
to
e5147f1
Compare
e5147f1
to
d47f9ab
Compare
Release Notes Persisted
|
An error occurred while attempting to backport this PR to "3-0-x", |
…14253) * fix: opt into location services once device service has been started * refactor: provide fake location provider to mock geolocation reponses * chore: add spec for navigator.geolocation api using fake location provider
…14253) * fix: opt into location services once device service has been started * refactor: provide fake location provider to mock geolocation reponses * chore: add spec for navigator.geolocation api using fake location provider
…(backport: 3-0-x) (#14289) * fix: opt into location services once device service has been started (#14253) * fix: opt into location services once device service has been started * refactor: provide fake location provider to mock geolocation reponses * chore: add spec for navigator.geolocation api using fake location provider * fix conflict
Description of Change
The global permission for opting into geolocation services was trying to get initialized before the device service was started, this patch fixes it by initializing it as a part of the permission request as every geolocation api call is guaranteed to hit the permission manager before further processing.
Fixes #14111
Depends on electron/libchromiumcontent#659
Checklist
npm test
passesRelease Notes
Notes: opt into location services once device service has been started