Repository navigation
Conversation
de8d4a6 to
30a6312
Compare
size-limit report 📦Compared: 8404e45 (PR test merge using develop at 2162c51) Against: cf84d81 (develop) · base run #68198
|
|
One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check. |
Optional E2E testsAll optional checks were successful. 65 successful. See the run. Successful checks
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 30a6312. Configure here.
| sentryTest('records canvas on pages that enforce Trusted Types', async ({ getLocalTestUrl, page }) => { | ||
| if (shouldSkipReplayTest() || (process.env.PW_BUNDLE || '').startsWith('bundle')) { | ||
| sentryTest.skip(); | ||
| } |
There was a problem hiding this comment.
Trusted Types canvas test runs on WebKit
Low Severity
This test waits until a CanvasMutation snapshot arrives, but unlike the existing records and manualSnapshot canvas tests it doesn't skip webkit. If WebKit never emits canvas mutation snapshots (likely the reason those tests skip it), collectReplayRequests will hang until timeout and the test will fail or flake in the WebKit project.
Additional Locations (1)
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 30a6312. Configure here.
There was a problem hiding this comment.
It passes on WebKit locally and in CI it only runs in Chromium because the WebKit job uses a CDN bundle and the test skips bundles
| "@sentry/browser-utils": "11.17.0", | ||
| "@sentry/replay": "11.17.0", | ||
| "@sentry/core": "11.17.0" |
There was a problem hiding this comment.
nit: makes me think it belongs in core but then again this is not usable on server, so 🤷♂️
There was a problem hiding this comment.
i mean we do have core/browser, but iirc the idea was to move as much as possible into browser-utils (and core/server into server-utils), so I guess this is fine here.
30a6312 to
810983f
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
810983f to
f0a680a
Compare


What
Canvas Replay now works on pages that enforce Trusted Types, if the page allows the SDK's policy with
trusted-types sentry-sdk.Why
rrweb creates the canvas worker from a plain
blob:URL string, which enforcement blocks. Passing our policy through rrweb's newgetTrustedScriptURLoption (getsentry/rrweb#367) means users don't have to allow a second policy name. This adds@sentry/browser-utilsas a dependency ofreplay-canvas.closes #24744