[Webkit-unassigned] [Bug 239729] New: Always fire popstate sync

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 25 09:47:52 PDT 2022


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

            Bug ID: 239729
           Summary: Always fire popstate sync
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: History
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: d at domenic.me

Currently Blink and WebKit both delay popstate events that would occur before the load event, and queue them up to fire after the load event.

This causes undesirable nondeterminism, as if you change a page's fragment before the load event, sometimes you will get events in the order [popstate, hashchange], and sometimes [hashchange, popstate], depending on how long it takes for the page to load.

Firefox has a simpler model of always firing popstate synchronously. We are speccing that in https://github.com/whatwg/html/pull/7815 and Chromium will be working to align in https://bugs.chromium.org/p/chromium/issues/detail?id=1254926 / https://chromium-review.googlesource.com/c/chromium/src/+/3580022 . (Note that the current spec, before that spec PR, matched no browser.)

Web platform tests are available at https://github.com/web-platform-tests/wpt/pull/33746 .

-- 
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/20220425/5b56e0e6/attachment.htm>


More information about the webkit-unassigned mailing list