[Webkit-unassigned] [Bug 65895] New: calling window.history.replaceState in document beforeunload changes the history state for both the next and current page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 8 19:45:15 PDT 2011


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

           Summary: calling window.history.replaceState in document
                    beforeunload changes the history state for both the
                    next and current page
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: All
               URL: http://jsfiddle.net/valeshino/MEtUE/4/show/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: History
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: alan.khalis at gmail.com


Using jQuery for simplicity:

$(window).bind('beforeunload', function() {
    window.history.replaceState({}, 'replaced', '?bar=1');
});

The document being unloaded has its history set to ?bar=1, but the page being loaded after this also has its history set to ?bar=1.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list