Skip to content

fix(browser): reduce Chrome vendor background traffic - #131

Merged
ElbertePlinio merged 2 commits into
mainfrom
fix/112-chrome-background-egress
Sep 9, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
fix/112-chrome-background-egress

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Refs #112

Chromium's user cloud policy invalidation token uploaders start GCM independently of account sync and website Push subscriptions. Starting GCM also initializes its account mapper, which requests a legacy registration. This explains why --disable-background-networking did not prevent the cited registration retries. The log has no app IDs, so attribution of the specific DEPRECATED_ENDPOINT response remains source-based rather than directly observed.

Sources: policy invalidation startup, GCM account mapper, registration transport and its explicit lack of a global disable option, GCM endpoint switches, and Chrome flags for tools.

Use --gcm-checkin-url, --gcm-registration-url, and --gcm-mcs-endpoint with https://127.0.0.1:0 to replace all three external GCM transports with an unusable loopback endpoint. The MCS override also suppresses the vendor fallback. GCM can still initialize and retry locally. Add --disable-notifications, --disable-component-update, --disable-domain-reliability, and --disable-client-side-phishing-detection; extend the single --disable-features list with AutofillServerCommunication, OptimizationHints, OptimizationTargetPrediction, and OptimizationGuideModelExecution. Keep existing sync/background controls and Translate/MediaRouter exclusions. No CDP or VNC binding changes, no DNS/proxy interception, and no sandbox weakening.

README now states that isolated sessions can access the internet and LAN, lists the disabled services and reduced browser protections, and makes no zero-egress guarantee. Launch arguments and offline NetLog reporting have unit tests. scripts/lab/chrome-egress-check.mjs uses an installed candidate lab in a fresh private home/project, creates an isolated headed browser without a host viewer, captures NetLog at about:blank for 90 seconds, closes through loopback CDP, tears down its own sessions, and reports non-loopback request/DNS/socket destinations. Raw evidence stays private under ~/.pickforge/lab/chrome-egress-checks/.

Validation: bun install --frozen-lockfile, bun run typecheck, bun run lint, PICKFORGE_REQUIRE_BROWSER=1 bun run test, bun run build, and complexity-gate check --changed passed. Full suite: 116 files, 1482 tests passed, 4 skipped. After review fixes, PICKFORGE_REQUIRE_BROWSER=1 bun run test:coverage passed on the final revision: 116 files, 1483 tests passed, 4 skipped, coverage thresholds intact; typecheck/lint and the 13 scoped argument/reporter tests also passed. An earlier run had one unrelated Android fake-emulator port-retry failure; its targeted retry and the final full run passed. The NetLog reporter was tested with synthetic input only. The 90-second real-browser egress script was deliberately NOT run in this lane. A separate final reviewer identified NetLog flush timing and cleanup error masking issues; both were fixed, and a focused recheck found no blocking issues.

Do not close #112 yet. A later authorized Astra low execution lane must run the installed-candidate egress check and confirm real-browser behavior before the lead closes the issue. No merge or release action requested.

@ElbertePlinio
ElbertePlinio force-pushed the fix/112-chrome-background-egress branch from 22c60b1 to 83a5040 Compare September 9, 2026 12:39
@ElbertePlinio
ElbertePlinio merged commit e3ad96d into main Sep 9, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the fix/112-chrome-background-egress branch September 9, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document and reduce headed Chrome background egress

1 participant