Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions browse/src/cdp-allowlist.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down