wpt: Fix the test of history.state === popStateEvent.state
Firefox, Safari, and Chrome agree the behavior of history.state === popStateEvent.state so update the test case accordingly. IIUC, HTML also requires this behavior. https://html.spec.whatwg.org/C/#history-traversal:dom-history-state step 13. Set history.state to state. step 16.1. If state changed is true, then fire an event named popstate at the Document object's relevant global object, using PopStateEvent, with the state attribute initialized to state. where |state| is the result of StructuredDeserialize, so it's expected that history.state === popStateEvent.state. Bug: 1070938 Change-Id: I161e415ce986be56031080e1538a0d4ac4fbf133 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2147169Reviewed-by:Domenic Denicola <domenic@chromium.org> Commit-Queue: Yuki Shiino <yukishiino@chromium.org> Cr-Commit-Position: refs/heads/master@{#759269}
Showing
Please register or sign in to comment