[Webkit-unassigned] [Bug 222304] New: beforeUnload and unload not called when clicking page refresh button

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 23 02:41:36 PST 2021


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

            Bug ID: 222304
           Summary: beforeUnload and unload not called when clicking page
                    refresh button
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: iOS 14
            Status: NEW
          Severity: Blocker
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: milan.keser at dynatrace.com
                CC: beidson at apple.com

There is an issue if refresh button is clicked a lot of times in short timespan beforeUnload and unload handlers are not called

I will attach the reproducer html page

The code in the reproducer should set cookie once with value of 1
When clicked refresh button it should clean the cookie

It works fine if refresh button is clicked in normal tempo

If you would spam the refresh button cookie would never get cleaned up and value would increment. Ocassionaly it would get cleaned during the spam of the refresh button

It is important that the page is refreshed only with refresh button


I would expect that the unload is always fired and cookie is always deleted

-- 
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/20210223/7bce950f/attachment.htm>


More information about the webkit-unassigned mailing list