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

🐛[RUMF-1493] Avoid infinite loop on form > input[name="host"] element #2017

Merged
merged 3 commits into from
Feb 16, 2023

Conversation

ThibautGeriz
Copy link
Contributor

@ThibautGeriz ThibautGeriz commented Feb 15, 2023

Motivation

Fix freeze in serialization because of infinite loop

Changes

Make sure to not count form element with child input as name host as a shadow root

Testing

  • Local (on the client website directly)
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

Make sure to not count form element with child input as name host as a shadow root
@ThibautGeriz ThibautGeriz changed the title [REPLAY] Fix freeze [REPLAY] Fix freeze in serialization Feb 15, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #2017 (16b0ad0) into main (77f48a1) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2017      +/-   ##
==========================================
+ Coverage   93.49%   93.58%   +0.09%     
==========================================
  Files         145      145              
  Lines        5507     5507              
  Branches     1249     1249              
==========================================
+ Hits         5149     5154       +5     
+ Misses        358      353       -5     
Impacted Files Coverage Δ
packages/rum-core/src/browser/htmlDomUtils.ts 100.00% <100.00%> (ø)
...rum-core/src/domain/contexts/foregroundContexts.ts 98.46% <0.00%> (+7.69%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ThibautGeriz ThibautGeriz changed the title [REPLAY] Fix freeze in serialization [RUMF-1493] Fix freeze in serialization Feb 15, 2023
@ThibautGeriz ThibautGeriz marked this pull request as ready for review February 15, 2023 13:22
@ThibautGeriz ThibautGeriz requested a review from a team as a code owner February 15, 2023 13:22
@ThibautGeriz ThibautGeriz changed the title [RUMF-1493] Fix freeze in serialization 🐛[RUMF-1493] Avoid infinite loop on form > input[name="host"] element Feb 15, 2023
@ThibautGeriz ThibautGeriz force-pushed the thibaut.gery/fix-freeze branch from 61bdbbd to f5f570e Compare February 15, 2023 15:50
@ThibautGeriz ThibautGeriz force-pushed the thibaut.gery/fix-freeze branch from f5f570e to 6f74f0d Compare February 15, 2023 15:51
packages/rum-core/src/browser/htmlDomUtils.spec.ts Outdated Show resolved Hide resolved
packages/rum-core/src/browser/htmlDomUtils.spec.ts Outdated Show resolved Hide resolved
Co-authored-by: Bastien Caudan <1331991+bcaudan@users.noreply.github.com>
@ThibautGeriz ThibautGeriz merged commit 4e1793e into main Feb 16, 2023
@ThibautGeriz ThibautGeriz deleted the thibaut.gery/fix-freeze branch February 16, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants