Repository navigation
test(redteam): verify Chrome Debugger.scriptParsed source maps for Wasm and JS - #9
Merged
Merged
Conversation
…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
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.
Debuggerdomain inChromeSessionand captureDebugger.scriptParsedevents (ParsedScriptRecord) includingsourceMapURLandscriptLanguage.S12(PrecacheManifestScenario) to verify that:main.dart.wasm.mapresolves (200 OK) with valid Source Map v3 JSON(
version: 3, non-emptysourcesandmappings).Debugger.scriptParsedwithsourceMapURL: "main.dart.wasm.map"formain.dart.<hash>.wasmand acontent-hashed
main.dart.<mapHash>.js.mapformain.dart.<hash>.js,and can fetch and parse both
.mapfiles as valid Source Map v3 JSON.Refs: flutter/flutter#193601
Refs: flutter/flutter#193614