mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
* 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>
28 lines
818 B
Plaintext
28 lines
818 B
Plaintext
# Copyright (c) 2018 GitHub, Inc.
|
|
# Use of this source code is governed by the MIT license that can be
|
|
# found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
enable_pdf_viewer = true
|
|
|
|
# Enable Chrome extensions support.
|
|
enable_electron_extensions = true
|
|
|
|
# Enable Spellchecker support
|
|
enable_builtin_spellchecker = true
|
|
|
|
# Enable Prompt API support.
|
|
enable_prompt_api = true
|
|
|
|
# The version of Electron.
|
|
# Packagers and vendor builders should set this in gn args to avoid running
|
|
# the script that reads git tag.
|
|
override_electron_version = ""
|
|
|
|
# Define an extra item that will show in process.versions, the value must
|
|
# be in the format of "key:value".
|
|
# Packagers and vendor builders can set this in gn args to attach extra info
|
|
# about the build in the binary.
|
|
electron_vendor_version = ""
|
|
}
|