RESOLVED INVALID 263326
pagehide, visibilitychange, beforeunload ALL not working when navigating away or closing tab/app/window
https://bugs.webkit.org/show_bug.cgi?id=263326
Summary pagehide, visibilitychange, beforeunload ALL not working when navigating away...
yanstiac
Reported 2023-10-18 11:36:32 PDT
pagehide, visibilitychange, beforeunload ALL broken when navigating away or closing either the tab or window/app rendering navigator.sendBeacon useless We need to get this sorted. More and more developers rely on live up-to-date analytics on user activity and knowing "when" a user has navigated away has to be by definition a major part of it. pagehide, visibilitychange, beforeunload do not have any effect whenever the user navigates away (by inputting a new url, using back/forward, using favorites, closing current tab or window) All other major browsers support this. What is going on?
Attachments
Radar WebKit Bug Importer
Comment 1 2023-10-25 11:37:21 PDT
Karl Dubost
Comment 2 2024-01-12 00:39:09 PST
Thanks for the report. It would be cool if you had a minimal testcase, that the WebKit Team could work with.
Brady Eidson
Comment 3 2024-03-29 13:29:27 PDT
> What is going on? All of these events are implemented, and many dozens/hundreds (if not thousands) of automated regression tests demonstrate they're working as expected. Karl asked for at least one reproducible test case here https://bugs.webkit.org/show_bug.cgi?id=263326#c2 If you could provide step-by-step instructions on what to look at, we can explore what's going on in that case!
Brady Eidson
Comment 4 2024-06-07 19:36:15 PDT
(In reply to Brady Eidson from comment #3) > > What is going on? > > All of these events are implemented, and many dozens/hundreds (if not > thousands) of automated regression tests demonstrate they're working as > expected. > > Karl asked for at least one reproducible test case here > https://bugs.webkit.org/show_bug.cgi?id=263326#c2 > > If you could provide step-by-step instructions on what to look at, we can > explore what's going on in that case! Gentle ping. For the above stated reasons, there's little progress we can make here without a concrete example.
Karl Dubost
Comment 5 2025-02-02 22:35:31 PST
Without more information, we can't really do anything. I'm closing the bug. If the issue was still happening. It would be great to have a test case to reproduce. Thanks for the bug report.
Note You need to log in before you can comment on or make changes to this bug.