forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 4
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
[TT-1112] Fix the sourcemap handler script #1229
Open
Domiii
wants to merge
73
commits into
master
Choose a base branch
from
dominik/tt-1112-root-cause-the-fetch-when-context-is-gone-recorder-crash
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
372c8ef
Assert MojoPageTimingSender and RenderFrameImpl::DidCommitNavigationI…
Domiii 7d09422
Fix the GetCreationContextChecked call
Domiii caff513
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii ae03a35
Move replay_sourcemap_handler to its own file
Domiii d85d112
Read replay_sourcemap_handler.js + fix
Domiii 9c3ad72
DEPS (v8)
Domiii 87b23f1
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 45c09aa
DEPS (v8)
Domiii c5ab8c5
undo
Domiii 2690dda
update lint + build scripts
Domiii d5340a8
Add safety net to `receiver_context` generation
Domiii 1077fc2
Remove `LocalDOMWindowPointerIsValid` workaround
Domiii 66dd222
DEPS (v8)
Domiii 32d7a55
DEPS (v8)
Domiii 6f5ebaa
more checks
Domiii 95d7b21
Don't crash intentionally anymore
Domiii 86652af
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 40f37f7
WIP
Domiii 72adac1
DEPS (v8)
Domiii 82f5fac
DEPS (v8)
Domiii 862ac54
DEPS (v8)
Domiii 11be808
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 3ac5c89
DEPS (v8)
Domiii f3dd571
notes
Domiii 0de85ee
Small things
Domiii 0a5cb9b
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii a9d1f9a
WIP
Domiii 04001f6
WIP
Domiii c863175
DEPS (v8)
Domiii 19e9073
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 59caef9
WIP: Get the right file path for assets
Domiii 887ffe2
DEPS (v8)
Domiii 3268285
WIP
Domiii b2c05c3
DEPS (v8)
Domiii b9266d1
Dirty solutions!
Domiii 8a926fe
WIP
Domiii 0ed4689
DEPS (v8)
Domiii 8f5a0a4
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 60a1642
fix lint problem + linter problem
Domiii 6f9da13
DEPS (v8)
Domiii 189488e
Fixing things
Domiii 9b89e43
DEPS (v8)
Domiii 6f09e1c
WIP
Domiii ae7f0b8
DEPS (v8)
Domiii 71ed459
WIP
Domiii c052ec9
DEPS (v8)
Domiii 2c0df14
WIP
Domiii 561d5ca
WIP
Domiii 4725082
WIP
Domiii 5c0fa0a
WIP
Domiii 122ac49
Alwys initialize the ReplayJsEventEmitter, when recording or replaying
Domiii c9ce2d5
whoops
Domiii 3029c25
fix `AutoMarkReplayCode`
Domiii faa00ce
Fix `RunScriptAndCallBack` order
Domiii a10b104
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 99cf7f8
Rename and init order fixes
Domiii d94d8ef
DEPS (v8)
Domiii 0b42ec6
DEPS (v8)
Domiii 226d03d
DEPS (v8)
Domiii bebbcd6
More small fixes
Domiii 48aa647
DEPS (v8)
Domiii e9a6f0c
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 19627ca
missing merged changes
Domiii 857cd6a
Slightly better failed CHECK logging
Domiii bb18ed8
DEPS (v8)
Domiii 52281cb
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii 0c08c9a
Fixing bugs + cleaning up
Domiii 6a2d39b
DEPS (v8)
Domiii 951aede
lint
Domiii 722f35d
fix recorder tests
Domiii 8300b82
Merge branch 'master' of github.com:replayio/chromium into dominik/tt…
Domiii cadb278
DEPS (v8)
Domiii 8b8abec
DEPS (v8)
Domiii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9e69b244fd0973ea3f8fb46fc9eb2ce39fa615a8 | ||
63be1e1d8a17bdfe09f570f2eed77136ec29ae81 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(() => { | ||
/** ########################################################################### | ||
* ReplayJs: Internal event handling. | ||
* ##########################################################################*/ | ||
|
||
const ReplayJsEventEmitterPrototype = { | ||
on(event, cb) { | ||
this._callbacks[event] ||= []; | ||
this._callbacks[event].push(cb); | ||
}, | ||
|
||
emit(event, ...args) { | ||
let cbs = this._callbacks[event]; | ||
if (cbs) { | ||
cbs.forEach((cb) => cb(...args)); | ||
} | ||
}, | ||
|
||
emitWithResult(event, ...args) { | ||
let cbs = this._callbacks[event]; | ||
if (!cbs?.length) { | ||
// If the caller expects a return value, there must be at least one callback registered. | ||
throw new Error(`ReplayJsEvent_emitWithResult_failed_unknown_event: ${event}`); | ||
} | ||
const rv = cbs[0](...args); | ||
return rv; | ||
}, | ||
}; | ||
|
||
function initializeReplayJsEvents(ReplayJsEventEmitter) { | ||
// Set up the event emitter. | ||
Object.assign(ReplayJsEventEmitter, ReplayJsEventEmitterPrototype); | ||
ReplayJsEventEmitter._callbacks = {}; | ||
} | ||
|
||
return initializeReplayJsEvents; | ||
})(); |
Oops, something went wrong.
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.
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 🤷♀️