[Webkit-unassigned] [Bug 212839] New: history.replaceState(..) results in title being removed from history entry
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 5 12:02:15 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=212839
Bug ID: 212839
Summary: history.replaceState(..) results in title being
removed from history entry
Product: WebKit
Version: Safari 13
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: History
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jimmy at codemagic.dk
Created attachment 401179
--> https://bugs.webkit.org/attachment.cgi?id=401179&action=review
Code sample useful for reproducing the bug
Please see attached sample demonstrating the bug.
Make sure test2.html is loaded from an HTTP server - it won't work from file://
1) Load test2.html from an HTTP server
2) Click About and Contact Us in the menu
3) Long-click on the Back button in Safari.
Notice how none of the history items have any titles (see Screenshot-bug.png)
Now disable the code triggering the bug (see Screenshot-code.png) and re-run the test. Notice how all history entries have titles now (see Screenshot-working.png).
This is a major annoyance when working with Single Page Applications and routing. Being able to update state associated with the current page, e.g. before "navigating" to the next page as in my example, makes perfect sense. Losing the context information the title provides will confuse many users.
The sample works fine in latest Chrome, latest Firefox, latest Edge based on Chromium, old MS Edge, and IE11.
The sample fails on Safari 13.1, 12.1, and 11.1.
--
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/20200605/fe8779f3/attachment.htm>
More information about the webkit-unassigned
mailing list