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

feat(replay): Consider window.open for slow clicks #8308

Merged
merged 3 commits into from Jun 19, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 9, 2023

When a click triggers window.open(), do not consider it a slow click.

Closes #8301

@mydea mydea requested review from billyvg and AbhiPrasad June 9, 2023 08:22
@mydea mydea self-assigned this Jun 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.17 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 66.13 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.71 KB (-0.01% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 58.6 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.33 KB (0%)
@sentry/browser - Webpack (minified) 69.52 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.36 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 49.28 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.79 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 27.02 KB (+0.01% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.37 KB (+0.18% 🔺)
@sentry/replay - Webpack (gzipped + minified) 43.1 KB (+0.23% 🔺)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 68.4 KB (+0.11% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.29 KB (+0.13% 🔺)

@mydea
Copy link
Member Author

mydea commented Jun 9, 2023

test actually fails because of #8310

@mydea mydea force-pushed the fn/slow-click-window-open branch from 0680c3e to 8f9b822 Compare June 9, 2023 09:43
Copy link
Member

Choose a reason for hiding this comment

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

Should we test that the original window.open still works?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess that makes sense! Will test this as well.

@mydea mydea force-pushed the fn/slow-click-window-open branch 2 times, most recently from ddd1efe to 2924b32 Compare June 16, 2023 11:05
When a click triggers `window.open()`, do not consider it a slow click.
@mydea mydea force-pushed the fn/slow-click-window-open branch from 2924b32 to 6814844 Compare June 19, 2023 11:46
@mydea mydea merged commit 1bdf2d9 into develop Jun 19, 2023
58 checks passed
@mydea mydea deleted the fn/slow-click-window-open branch June 19, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intercept window.open to ignore slow clicks
2 participants