[Webkit-unassigned] [Bug 142151] New: history.replaceState/location.replace incorrectly adds new entries to history
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 1 10:57:34 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=142151
Bug ID: 142151
Summary: history.replaceState/location.replace incorrectly adds
new entries to history
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jason.davies at gmail.com
The purpose of history.replaceState is to *modify* the current history entry. This works in the context of using the back button.
However, it always seems to add *new* history entries, in the context of the History menu item (and "Show History" page).
This causes a huge number of history entries for pages that update the URL frequently, e.g. zoom/pan of maps where the current zoom and position are encoded in the URL.
A good example of this in the wild is http://polymaps.org/ - e.g. http://polymaps.org/ex/midnight-commander.html - note that Polymaps actually uses location.replace internally with the same problem, though using history.replaceState doesn't fix it.
--
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/20150301/6a8c79c8/attachment-0002.html>
More information about the webkit-unassigned
mailing list