-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: support recording canvas in iframe and shadow dom #168
Conversation
@p-mazhnik This is great, I can take a look at this next week |
@p-mazhnik Do you have "Allow edits by maintainers" enabled on this PR? I can't seem to push to your branch |
I do. I've added you to my fork as well just in case |
@p-mazhnik thanks, ah I think the perm issues were due to tags |
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.
Manually tested this a bit, works great. Doesn't add too much to bundle size either.
Thanks for the contribution @p-mazhnik! Sorry it took so long to merge. |
`reset()` gets called when we stop a recording in progress. There is no reason to re-initialize the worker in `reset()` as you would need to call `record()` to start recording again, which would start a new worker. This was introduced in #168.
`reset()` gets called when we stop a recording in progress. There is no reason to re-initialize the worker in `reset()` as you would need to call `record()` to start recording again, which would start a new worker. This was introduced in #168.
Resolves getsentry/sentry-javascript#10758
rrweb PR: rrweb-io#1428
Before
Red square is on the main page;
Green is inside the shadow dom on the main page;
Blue one is within the iframe;
Pink is inside the shadow dom within the iframe.
canvas-iframe-before.mov
After
canvas-iframe-after.mov