-
Notifications
You must be signed in to change notification settings - Fork 5
[TT-1112] Fix the sourcemap handler script #1229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[TT-1112] Fix the sourcemap handler script #1229
Conversation
Domiii
commented
May 10, 2024
- paired w/ [TT-1112] Fix the sourcemap handler script chromium-v8#242
- https://linear.app/replay/issue/TT-1112/fix-the-sourcemap-handler-script-in-chromium#comment-958e0140
…-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash
…-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash
| return res; | ||
| } | ||
|
|
||
| addNewScriptHandler("sourcemaps", async (scriptId, sourceURL, relativeSourceMapURL) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addNewScriptHandler change 2
| } | ||
|
|
||
| addNewScriptHandler((scriptId, sourceURL, relativeSourceMapURL) => { | ||
| addNewScriptHandler("commands", (scriptId, sourceURL, relativeSourceMapURL) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addNewScriptHandler change 1
|
|
||
| namespace blink { | ||
|
|
||
| extern bool LocalDOMWindowPointerIsValid(LocalDOMWindow* window); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undo Brian's workaround.
| const AssetFiles = [ | ||
| "replay_command_handlers.js", | ||
| "replay_sourcemap_handler.js", | ||
| ]; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this (coupled with the block 156-158 below) the only change to this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be!
| const rv = spawnSync(cmd, args, options); | ||
|
|
||
| if (rv.status != 0 || rv.error) { | ||
| if (rv.status || rv.error || rv.signal) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this related to this change or TT-1150?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latter. But also: Its just a bug in this function 🤷♀️
|
Tried it a few more times locally: It seems to work! |
|
Update:
|
…-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash
…-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash
…-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash
…-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash