Skip to content
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

[Bug]: 引入rrweb cdn文件,录屏iframe报错 #1228

Open
1 task done
2513483494 opened this issue May 19, 2023 · 1 comment
Open
1 task done

[Bug]: 引入rrweb cdn文件,录屏iframe报错 #1228

2513483494 opened this issue May 19, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@2513483494
Copy link

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

@latest

Expected Behavior

不报错

Actual Behavior

有iframe的页面录屏就会报错

Steps to Reproduce

有iframe的页面录屏就会报错

Testcase Gist URL

No response

Additional Information

if (r.tagName === "IFRAME" && t.attributeName === "src" && !this.keepIframeSrcFn(n))
if (!r.contentDocument)
t.attributeName = "rr_src";
else
return;

debug发现是代码的这部分报错,报错信息:
rrweb-record.min.js:3 Uncaught TypeError: Cannot set property attributeName of # which has only a getter

@2513483494 2513483494 added the bug Something isn't working label May 19, 2023
@wfk007
Copy link
Contributor

wfk007 commented May 21, 2023

@2513483494 你试试 2.0.0-alpha.8,#1173 这个 PR 应该修复了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants