Skip to content

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

@mstahv

Description

@mstahv

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    🔖 Normal Priority (P2)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions