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

Beacon API based eager UI closing is broken on Firefox and Safari #19305

Open
mstahv opened this issue May 5, 2024 · 3 comments
Open

Beacon API based eager UI closing is broken on Firefox and Safari #19305

mstahv opened this issue May 5, 2024 · 3 comments

Comments

@mstahv
Copy link
Member

mstahv commented May 5, 2024

Description of the bug

It looks like the detach event is not firer "eagerly" when leaving the page (using a beacon request) when Firefox is used. With Safari I also noticed some issues with one project, but can't reproduce with a fresh project (some caching issue mayby on Safari 🤷‍♂️). With Chrome it always works.

Expected behavior

The detach event should be fired whan navigating away or closing the window within a reasonable time.

Minimal reproducible example

Override onDetach and see when it actually happens.

Versions

Flow: 24.3.9
Vaadin: 24.3.10
Java: Eclipse Adoptium 22.0.1
OS: aarch64 Mac OS X 14.4.1
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:125.0) Gecko/20100101 Firefox/125.0

@mstahv
Copy link
Member Author

mstahv commented May 6, 2024

Might be I was holding it wrong. FF at least sometimes don't properly do beacon request. https://bugzilla.mozilla.org/show_bug.cgi?id=1609653

@Legioth
Copy link
Member

Legioth commented May 6, 2024

I wouldn't be surprised if this is just the way some browser implementations work and there's nothing we can do about it.

@TatuLund
Copy link
Contributor

We have seen this Firefox problem also in our Vaadin 8 integration tests, as they are run both in Chrome and Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 High Priority (P1)
Status: 🪵Product backlog
Development

No branches or pull requests

4 participants