Skip to content

fix(signal-tracker): firefox and chromium loop over different stack traces (@Leonabcd123)#7754

Open
Leonabcd123 wants to merge 1 commit intomonkeytypegame:masterfrom
Leonabcd123:signal-tracker-firefox
Open

fix(signal-tracker): firefox and chromium loop over different stack traces (@Leonabcd123)#7754
Leonabcd123 wants to merge 1 commit intomonkeytypegame:masterfrom
Leonabcd123:signal-tracker-firefox

Conversation

@Leonabcd123
Copy link
Copy Markdown
Contributor

Description

First signal's first frame in frames array in

const frames = stack.split("\n").slice(1);

Chromium:

at getCallerInfo (http://localhost:3000/ts/dev/signal-tracker.ts?t=1774961577350:5:16)

Firefox:

DEV.hooks.afterRegisterGraph@http://localhost:3000/ts/dev/signal-tracker.ts?t=1774961577350:84:34

They both should be referring to getCallerInfo, but only chromium does, because firefox slices off that frame in the code linked above, while chromium slices off the string "Error".

Doesn't really matter because the getCallerInfo frame will be skipped anyways, but this should still be done to make behavior more consistent across different browsers.

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Mar 31, 2026
@Leonabcd123 Leonabcd123 changed the title chore(signal-tracker): firefox and chromium loop over different signals (@Leonabcd123) chore(signal-tracker): firefox and chromium loop over different stack traces (@Leonabcd123) Mar 31, 2026
@Leonabcd123 Leonabcd123 changed the title chore(signal-tracker): firefox and chromium loop over different stack traces (@Leonabcd123) fix(signal-tracker): firefox and chromium loop over different stack traces (@Leonabcd123) Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants