M3: Network and environment (Route, HAR, Emulate, Clear Site Data, console) #6
Loading…
Reference in a new issue
No description provided.
Delete branch "akib/m3-network"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M3: Network and environment (Chromium via CDP)
Completes M3.1–M3.5 on top of the run-scoped CDP sessions (M3.0). Version stays 0.4.0; 0.5.0 ships with M4.
New
route): fulfill / abort / continue / modify / redirect through CDPFetch; abort/redirect throughdeclarativeNetRequestsession rules (also Firefox, no debugging bar). Newest matching rule wins; rules are removed at run end; stale rules cleared at worker start.har-record): HAR 1.2 metadata (≤ 500 entries), no bodies/cookies/auth headers, sensitive query values redacted; output, dataset or download.emulate): device presets, viewport, scale, UA, locale, timezone, geolocation, color scheme, reduced motion, offline. Only what the run changed is reset, also after failure.clear-site-data): exact origins viabrowsingData(Chromium only; Firefox refuses and no longer requests the permission).console-errors.m3Host.ts: one feature set per run, tab claims (one run owns a tab's overrides), every cleanup runs before the debugger is released.Verification
npm run check: 771 unit/DOM tests, guide/learning/wiki checksnpm run e2e: 234 checks in 22 specs (Chromium 156)npm run e2e:firefox: 34 checks (Firefox 159): DNR routing works, Chromium-only blocks fail withpermission.missingnpm run build,npm run build:firefoxNotes for review
delayMs(≤ 30 s) usessetTimeoutinsrc/browser/routes.ts; CLAUDE.md reserves timers forhybridScheduler.ts. Keep as a documented exception or lower the cap?mock-api-mobileguide example and the wiki recipe pass import checks but were not run in a browser.Docs: lesson 07 + glossary, usage guide section + example, 13 wiki pages, M3 status in IMPLEMENTATION/PLAN/README/Roadmap.
🤖 Generated with Claude Code