You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Other (specify below)
Version
v2.0.0-alpha.18
Expected Behavior
@rrweb/record and rrweb-snapshot should clean up any iframes that are injected for the purposes of getting clean prototypes.
Actual Behavior
In @rrweb/record and rrweb-snapshot, getUntaintedPrototype contains code that injects an iframe but doesn't always properly clean it up (in my case, when calling const win = iframeEl.contentWindow; doesn't work within an iframe):
Preflight Checklist
What package is this bug report for?
Other (specify below)
Version
v2.0.0-alpha.18
Expected Behavior
@rrweb/record and rrweb-snapshot should clean up any iframes that are injected for the purposes of getting clean prototypes.
Actual Behavior
In @rrweb/record and rrweb-snapshot,
getUntaintedPrototype
contains code that injects an iframe but doesn't always properly clean it up (in my case, when calling const win = iframeEl.contentWindow; doesn't work within an iframe):Steps to Reproduce
Enable @rrweb/record
Go to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
Paste the following into the HTML input:
Click on "Example Domain" when it renders in the iframe

Note a new blank iframe is injected and not removed
Testcase Gist URL
No response
Additional Information
I suggest adding a finally clause to handle the iframe cleanup:
The text was updated successfully, but these errors were encountered: