Skip to content

feat(rrweb): Add getTrustedScriptURL option to CanvasManager - #367

Merged
msonnb merged 1 commit into
sentry-v2from
ms/canvas-trusted-types
Nov 25, 2026
Merged

msonnb merged 1 commit into
sentry-v2from
ms/canvas-trusted-types

Conversation

@msonnb

@msonnb msonnb commented Nov 23, 2026

Copy link
Copy Markdown
Member

Canvas recording creates its worker from a blob: URL string, which pages enforcing Trusted Types (require-trusted-types-for 'script') block.

The new option lets the caller convert that URL, so the Sentry SDK can use its own sentry-sdk policy (getsentry/sentry-javascript#26764) and users don't have to allow another policy name for rrweb. Behavior is unchanged without it.

Refs getsentry/sentry-javascript#24744

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@msonnb
msonnb force-pushed the ms/canvas-trusted-types branch from 4ccbba1 to 9411355 Compare November 24, 2026 15:10
@msonnb
msonnb marked this pull request as ready for review November 24, 2026 15:11
@msonnb
msonnb requested review from Lms24 and logaretm November 24, 2026 15:12
@msonnb
msonnb merged commit a860b0c into sentry-v2 Nov 25, 2026
23 checks passed
@msonnb
msonnb deleted the ms/canvas-trusted-types branch November 25, 2026 12:45
msonnb added a commit to getsentry/sentry-javascript that referenced this pull request Nov 25, 2026
## What

Bumps `@sentry/rrweb`, `@sentry/rrweb-snapshot` and
`@sentry/rrweb-types` from 2.46.2 to 2.47.0.

## Why

2.47.0 adds a `getTrustedScriptURL` option to rrweb's `CanvasManager`
(getsentry/rrweb#367), so the next SDK release can pick it up.

<!-- junior-request-attribution:start -->
via @msonnb.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0C5DRTAU2X%3A1795616155.465319 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C5DRTAU2X%3A1795616155.465319)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C5DRTAU2X%3A1795616155.465319/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Martin Sonnberger <26038247+msonnb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants