[Bug]: No detection of canvas mutations in same-origin iframes (+ no drawImage inlining)
Author: ghostCreated Jun 20, 2026Updated Jun 23, 2026
Labelsbug
Preflight Checklist
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
What package is this bug report for?
rrweb
Version
2.0.1
Expected Behavior
Hello
I am not certainly sure because for me its quite big project and its hard to read the code but during my tests i stumbled upon bug with canvas. Rrweb handle same-origin iframes only partially and do not listen for canvas mutations. It use MutationObserver which listen only for DOM changes.
Actual Behavior
No canvas updates
Steps to Reproduce
- Create a page with a same-origin that draws on a canvas (e.g. an animation or drag-and-drop canvas captcha puzzle)
- Record with record({ recordCanvas: true, ... }) in the parent frame
- Replay — the initial canvas state appears correctly, but all subsequent canvas mutations are missing
Testcase Gist URL
No response
Additional Information
No response
Source: rrweb-io/rrweb