GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(rrweb): Don't throw when tearing down a locked `adoptedStyleSheets` patch by sentry-junior[bot] · Pull Request #351 · getsentry/rrweb Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Overall this makes sense but I have a lot of questions about the behaviour
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Drop the per-host patch registry. Each observer keeps its own setter and a recording flag, and teardown removes the property only if it is still ours. If another script locked it meanwhile, it stays as a pass-through and later recordings skip the patch, as they do for any pre-existing lock. Also skip the patch when the host is sealed or frozen, explain why configurable: true is safe, rename callAllHandlers to runAllEvenIfOneThrows, keep the original hostId code, and drop the changeset, which this fork does not use for releases.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Starting to look good, a few more questions though
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Rename runAllEvenIfOneThrows to runAllAndRethrowFirstError and pass record()'s final cleanup steps to it instead of wrapping it in try/finally. Rename the saved own descriptor and the patched setter so teardown's ownership check reads clearly, and write the configurable comment in the present tense. Replace the lock-parameterised test helper with one test per scenario that does its own setup and uses plain assertions. Shared recording helpers are installed in the page in beforeEach.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a few more tweaks needed before we can open this up
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
adoptedStyleSheets patch
…leSheets names runAll now runs every handler and returns the errors they threw. record()'s stop function and initObservers()'s cleanup rethrow the first one, so the SDK still sees the same failure as before. Rename the adoptedStyleSheets setter and active flag to say what they belong to, and reword the comments to name where each descriptor comes from and to say that the ownership check and the Reflect calls are there to be safe.
|
@cursor review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4259a1e. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looked like #352 to me at a glance, but they are actually two separate bugs.
LGTM!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…130930) Bumps the Sentry JavaScript SDK from 11.7.0 to [11.12.0](https://github.com/getsentry/sentry-javascript/releases/tag/11.12.0), mainly to pick up rrweb [2.46.0](https://github.com/getsentry/rrweb/releases/tag/2.46.0) (getsentry/sentry-javascript#26241). rrweb 2.46.0 fixes: - Clear leftover nodes when `document.open()` is skipped (getsentry/rrweb#350) - Don't record the default value of cleared inputs (getsentry/rrweb#349) - Keep adopted stylesheets on seek when their first host was removed (getsentry/rrweb#352) - Don't throw when tearing down a locked `adoptedStyleSheets` patch (getsentry/rrweb#351) Changes: - `@sentry/browser`, `@sentry/core`, `@sentry/node`, `@sentry/react`: 11.7.0 → 11.12.0 across `static/app`, `static/gsApp`, `static/gsAdmin`, `static/packages/scraps`, and `tests/js`. - `@sentry/rrweb`, `@sentry/rrweb-player`, `@sentry/rrweb-snapshot`: 2.45.0 → 2.46.0, so the replay player uses the same rrweb as the SDK. - `@sentry/rrweb-types`: 2.44.0 → 2.46.0. This drops the duplicate `@sentry/[email protected]` / `@sentry/[email protected]` entries from the lockfile. <!-- junior-request-attribution:start --> via **George Gritsouk**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AD0AR76A9F5G%3A1794502210.473359 --> Closes REPLAY-1029 Closes REPLAY-1019 -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0AR76A9F5G%3A1794502210.473359) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0AR76A9F5G%3A1794502210.473359/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: George Gritsouk <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.