[Webkit-unassigned] [Bug 49669] New: Inconsistent history.replaceState and window.location.hash behaviour

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 17 09:22:08 PST 2010


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

           Summary: Inconsistent history.replaceState and
                    window.location.hash behaviour
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: showerheadsuk at hotmail.com


When replacing the history state with a hash, window.location.hash does not contain the new hash in Safari and Webkit. Google Chrome works as I would expect.

Here is the log using the Developer Tools javascript console to input the commands:

Safari 5.0.2(7533.18.5):
history.replaceState(null,null,'#beans')
undefined
history.replaceState(null,null,'#poy')
undefined
window.location.hash
"#beans"

WebKit r71499:
history.replaceState(null,null,'#beans')
undefined
history.replaceState(null,null,'#poy')
undefined
window.location.hash
""

Chrome 7.0.517.44:
history.replaceState(null,null,'#beans')
undefined
history.replaceState(null,null,'#poy')
undefined
window.location.hash
"#poy"

-- 
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