rrweb-io / rrweb

record and replay the web
https://www.rrweb.io/
MIT License
16.75k stars 1.43k forks source link

[Bug]: [replayer] Exception in mutation Failed to execute 'appendChild' on 'Node': Nodes of type '#document' may not be inserted inside nodes of type 'META'. #1414

Open macalinao opened 8 months ago

macalinao commented 8 months ago

Preflight Checklist

What package is this bug report for?

rrweb

Version

v2.0.0-alpha.11

Expected Behavior

Should not crash the replayer

Actual Behavior

Replayer crashes

Steps to Reproduce

Use RRWeb on etsy.com

Testcase Gist URL

https://rrwebdebug.com/play/index.html?url=https%3A%2F%2Fgist.github.com%2Fmacalinao%2Fbb2505ada4a5536a28879cfd670109ae%2Fraw%2Fb256cc21c3094ecb6c8be48afef8e3eb503ada1b%2Fbotstudio-virtual-browser-session-b807712e-492d-4a0e-98a2-716b3e00403d.json&version=2.0.0-alpha.11&virtual-dom=on&play=on

Additional Information

No response

mindaugasrukas commented 2 months ago

We observe the same issue with all versions up to v2.0.0-alpha.17 (on many sites). It seems like the bug is related to iframes.