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-1450] stop computing coordinates for focus/blur records #1985

Merged
merged 4 commits into from
Feb 1, 2023

Conversation

bcaudan
Copy link
Contributor

@bcaudan bcaudan commented Jan 30, 2023

Motivation

On focus and blur records, we don't need coordinates and this computation trigger an unnecessary reflow which can lead to customer site behaviour difference on safari, cf issue.

Changes

Stop computing coordinates for focus and blur records.

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@bcaudan bcaudan force-pushed the bcaudan/replay-remove-xy-blur-focus branch 2 times, most recently from a10c314 to cd66e28 Compare January 31, 2023 08:26
@bcaudan bcaudan force-pushed the bcaudan/replay-remove-xy-blur-focus branch from cd66e28 to fb543ba Compare January 31, 2023 14:42
@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2023

Codecov Report

Merging #1985 (178c0de) into main (6aec1d3) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1985      +/-   ##
==========================================
- Coverage   93.31%   93.19%   -0.12%     
==========================================
  Files         145      145              
  Lines        5504     5511       +7     
  Branches     1255     1256       +1     
==========================================
  Hits         5136     5136              
- Misses        368      375       +7     
Impacted Files Coverage Δ
packages/rum/src/domain/record/observers.ts 77.00% <100.00%> (+0.83%) ⬆️
...s/rum-core/src/domain/contexts/pageStateHistory.ts 73.17% <0.00%> (-7.32%) ⬇️
...rum-core/src/domain/contexts/foregroundContexts.ts 90.76% <0.00%> (-6.16%) ⬇️

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

@bcaudan bcaudan marked this pull request as ready for review January 31, 2023 14:57
@bcaudan bcaudan requested review from a team as code owners January 31, 2023 14:57
Copy link
Contributor

@ThibautGeriz ThibautGeriz left a comment

Choose a reason for hiding this comment

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

LGTM for replay (I did not QA change)

packages/rum/src/domain/record/observers.spec.ts Outdated Show resolved Hide resolved
packages/rum/src/domain/record/observers.spec.ts Outdated Show resolved Hide resolved
@bcaudan bcaudan merged commit 086e687 into main Feb 1, 2023
@bcaudan bcaudan deleted the bcaudan/replay-remove-xy-blur-focus branch February 1, 2023 16:29
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.

5 participants