-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
record same origin <iframes> (and maybe other frames?) #422
Comments
Iframe recording seems to be one of the top requested feature. There seem to be some prior work done on this by lib author #68 |
If you are planning to take a stab at it, kindly consider shadow-dom issue as well, details and possible solution in the comment, #38 (comment) |
I have a local branch that works on some simple iframe scenario. The problem is there are two different approaches:
Each of the approaches has some problem to solve. |
Ok, I think I underestimated the problem as I forgot about recording events inside the iframe in the nested DOM approach. Could we do #2, but have the containing document automatically kick off the recording (with the same config, except for the emission handler), and have the nested document emit changes up to the containing document, which then re-emits it normally? e.g. for message exchange: https://gist.github.com/pbojinov/8965299 |
This pull request: #294 If we were doing that, then it would make sense to have a master/singleton instance of rrweb at the highest window, which then launches all the nested instances which report back to it. |
I wish to record a website which has an embedded iframe, for which the
document.getElementsByTagName('iframe')[0].contentDocument.body
is accessible from the containing page (where the recorder is active).
I'm going to attempt a patch to get this included in the recording, but let me know if there are any thoughts, or situations where this would not be desirable?
The text was updated successfully, but these errors were encountered: