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?
rrweb
Version
2.0.0-alpha.17
Expected Behavior
The event listener for cross-origin iframe events should only ever be added once to prevent duplicate message-handling.
Actual Behavior
Every time attachIframe is called in the IframeManager, the event listener is added, without regard to whether or not it has already been added. This means that if attachIframe is called multiple times (e.g. if navigation occurs within the iframe, causing the load event to fire), multiple listeners will be installed.
Preflight Checklist
What package is this bug report for?
rrweb
Version
2.0.0-alpha.17
Expected Behavior
The event listener for cross-origin iframe events should only ever be added once to prevent duplicate message-handling.
Actual Behavior
Every time
attachIframe
is called in theIframeManager
, the event listener is added, without regard to whether or not it has already been added. This means that ifattachIframe
is called multiple times (e.g. if navigation occurs within the iframe, causing theload
event to fire), multiple listeners will be installed.This bug was introduced here: 5c27b76#diff-01af2d33dc0d57c42970a0ab06328c71ea48c696077c60d96023427f27410829R80
Steps to Reproduce
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: