Skip to content

[Bug]: No detection of canvas mutations in same-origin iframes (+ no drawImage inlining) #1881

Description

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

  1. Create a page with a same-origin <iframe> that draws on a canvas (e.g. an animation or drag-and-drop canvas captcha puzzle)
  2. Record with record({ recordCanvas: true, ... }) in the parent frame
  3. Replay — the initial canvas state appears correctly, but all subsequent canvas mutations are missing

Testcase Gist URL

No response

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions