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?
<rdar://problem/117486857>
Thanks for the report. It would be cool if you had a minimal testcase, that the WebKit Team could work with.
> 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!
(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.