[Webkit-unassigned] [Bug 199854] New: Safari on iOS doesn't fire any events when the tab/app is closed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 17 04:20:48 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199854

            Bug ID: 199854
           Summary: Safari on iOS doesn't fire any events when the tab/app
                    is closed
           Product: WebKit
           Version: Safari 12
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jason.gissing at omnis.net

Created attachment 374286

  --> https://bugs.webkit.org/attachment.cgi?id=374286&action=review

test page demonstrating the issue

On iOS, the document's visibilitychange event is fired when changing tab, but not when a tab is closed, or if the Safari app is suspended/killed.
pagehide, beforeunload & unload all seem not to fire at all on iOS.


We have an application which sets up sessions for clients, but we seem to have no way of detecting that a client has (even possibly) gone away, and so sessions are not cleaned up.

Safari on desktop does not have these issues, and neither do browsers on Android.


Most related bugs seem to be linked to fault https://bugs.webkit.org/show_bug.cgi?id=116769, but this has had no activity since 2013.



Attached is a simple test page, which tries to send a beacon to a publicly accessible endpoint (it has daily limits, so change the endpoint to your own if need be) on pagehide, unload, beforeunload & visibilitychange events. None of these are fired if the tab or app is closed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190717/6ac08c2b/attachment.html>


More information about the webkit-unassigned mailing list