Skip to content

Conversation

@YunFeng0817
Copy link
Member

bug description

In the recorder, some elements can be mutated and serialized multiple times. If they have attached shadow doms, these shadow doms can be also observed multiple times in the shadow-dom-manager. Then children of shadow doms would be created multiple times causing duplicate elements in the replayer.
For example:
image
The original page is on the left-hand side and the problematic page is on the RHS.

I also noticed a bug in the live-stream script. When navigating a page, the recorder would be executed twice and also cause duplicate shadow doms.

Solution

Add a set in the shadow-dom-manager and check each shadow root before observing them.

Copy link
Member

@Yuyz0112 Yuyz0112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants