This commit is contained in:
Trip 2026-07-14 19:16:59 -07:00 committed by GitHub
commit ff633672b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

19
browse/src/cdp-allowlist.ts Normal file → Executable file
View File

@ -155,6 +155,25 @@ export const CDP_ALLOWLIST: ReadonlyArray<CdpAllowEntry> = Object.freeze([
output: 'trusted',
justification: 'UA override on the active tab. NOTE: changes affect future requests; fine for tests.',
},
{
domain: 'Emulation',
method: 'setGeolocationOverride',
scope: 'tab',
output: 'trusted',
justification: 'Geolocation override on the active tab. Same threat profile as setDeviceMetricsOverride: pure input, no data exfiltration. Enables GPS testing.',
},
{
domain: 'Emulation',
method: 'clearGeolocationOverride',
scope: 'tab',
output: 'trusted',
justification: 'Clear geolocation override. Mirrors clearDeviceMetricsOverride for cleanup symmetry.',
},
// NOTE: Browser.grantPermissions is intentionally NOT added here. It is a
// browser-scope CDP method that cannot be forwarded through the page-level
// CDPSession that the browse bridge uses. Geolocation testing requires either
// a Playwright script (which grants permissions at context creation) or a
// future browser-scope CDP routing path in the bridge.
// ─── Page capture (output, not navigation) ─────────────────
{
domain: 'Page',