Repository navigation
fix(browser): reduce Chrome vendor background traffic - #131
Merged
Merged
Conversation
ElbertePlinio
force-pushed
the
fix/112-chrome-background-egress
branch
from
September 9, 2026 12:39
22c60b1 to
83a5040
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-networkingdid not prevent the cited registration retries. The log has no app IDs, so attribution of the specificDEPRECATED_ENDPOINTresponse 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-endpointwithhttps://127.0.0.1:0to 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-featureslist withAutofillServerCommunication,OptimizationHints,OptimizationTargetPrediction, andOptimizationGuideModelExecution. 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.mjsuses 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, andcomplexity-gate check --changedpassed. Full suite: 116 files, 1482 tests passed, 4 skipped. After review fixes,PICKFORGE_REQUIRE_BROWSER=1 bun run test:coveragepassed 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.