Skip to content

test(redteam): verify Chrome Debugger.scriptParsed source maps for Wasm and JS - #9

Merged
kevmoo merged 1 commit into
mainfrom
chrome-source-maps
Oct 1, 2026
Merged

kevmoo merged 1 commit into
mainfrom
chrome-source-maps

Conversation

@kevmoo

@kevmoo kevmoo commented Oct 1, 2026

Copy link
Copy Markdown
Owner
  • Enable the CDP Debugger domain in ChromeSession and capture
    Debugger.scriptParsed events (ParsedScriptRecord) including
    sourceMapURL and scriptLanguage.
  • Update S12 (PrecacheManifestScenario) to verify that:
    • main.dart.wasm.map resolves (200 OK) with valid Source Map v3 JSON
      (version: 3, non-empty sources and mappings).
    • Live headless Chrome emits Debugger.scriptParsed with
      sourceMapURL: "main.dart.wasm.map" for main.dart.<hash>.wasm and a
      content-hashed main.dart.<mapHash>.js.map for main.dart.<hash>.js,
      and can fetch and parse both .map files as valid Source Map v3 JSON.

Refs: flutter/flutter#193601
Refs: flutter/flutter#193614

…sm and JS

- Enable the CDP `Debugger` domain in `ChromeSession` and capture
  `Debugger.scriptParsed` events (`ParsedScriptRecord`) including
  `sourceMapURL` and `scriptLanguage`.
- Update `S12` (`PrecacheManifestScenario`) to verify that:
  - `main.dart.wasm.map` resolves (`200 OK`) with valid Source Map v3 JSON
    (`version: 3`, non-empty `sources` and `mappings`).
  - Live headless Chrome emits `Debugger.scriptParsed` with
    `sourceMapURL: "main.dart.wasm.map"` for `main.dart.<hash>.wasm` and a
    content-hashed `main.dart.<mapHash>.js.map` for `main.dart.<hash>.js`,
    and can fetch and parse both `.map` files as valid Source Map v3 JSON.

Refs: flutter/flutter#193601
Refs: flutter/flutter#193614
@kevmoo
kevmoo merged commit 3ca7e71 into main Oct 1, 2026
9 checks passed
@kevmoo
kevmoo deleted the chrome-source-maps branch October 1, 2026 02:07
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.

1 participant