Files
electron/buildflags
Charles KerrandClaude Opus 5.5 e27347b73a test: emulate the position in the geolocation permission-granted spec (#54698)
* test: emulate the position in the geolocation permission-granted spec

The test only ran on official builds, because other builds replace
the system location provider with FakeLocationProvider, which always
reports an error. On official builds it queried the real network
location service, which fails on CI with "Failed to query location
from network service."

Set the position with the DevTools Emulation.setGeolocationOverride
command instead, so the test runs on every build and doesn't depend
on the network. The permission request still goes through the
session's handler, and the test now checks that it did and that the
emulated coordinates come back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore: remove FakeLocationProvider

It was added to mock geolocation responses in tests.
The geolocation spec now sets the position with
Emulation.setGeolocationOverride instead, so the fake provider,
the enable_fake_location_provider GN arg, and the
OVERRIDE_LOCATION_PROVIDER buildflag are no longer needed.

The permission-denied spec no longer depends on the fake provider:
a denied request fails before any provider is queried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:22:53 +09:00
..