Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1831752 [wpt PR 39878] - Add location.reload() document state tes…
…t, a=testonly Automatic update from web-platform-tests Add location.reload() document state test This CL is a follow-up to https://crrev.com/c/3936785 and whatwg/html#6813 (comment). It adds a test asserting the document state preservation as described more below, in the `location.reload()` case, alongside a very similar test that asserts the same for the document repopulation case. The HTML Standard specifies the behavior of `location.reload()` to preserve the existing history entry's document state's initiator origin and referrer, as described in: https://html.spec.whatwg.org/multipage/browsing-the-web.html#apply-the-history-step:~:text=If%20targetEntry%27s%20document%20is%20null%2C%20or%20targetEntry%27s%20document%20state%27s%20reload%20pending%20is%20true%2C%20then. This means that when a page is navigated to from a cross-origin predecessor, and then `location.reload()`s itself, `Sec-Fetch-Site` should be `cross-site` and the `Referer` header should remain the same as the original navigation. Chromium currently fails this test, per whatwg/html#6813 (comment) and the code pointer described by that comment. R=domenicchromium.org Bug: N/A Change-Id: I868ac9fad7e63df251d6c4b0d0ac8b099b81d25b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4504799 Commit-Queue: Domenic Denicola <domenicchromium.org> Auto-Submit: Dominic Farolino <domchromium.org> Reviewed-by: Domenic Denicola <domenicchromium.org> Cr-Commit-Position: refs/heads/main{#1145759} -- wpt-commits: d9c2152bab4d2933e38c8df3c95d967c40809f8c wpt-pr: 39878 UltraBlame original commit: 2342752e35cc28fc870b3576d5d7a22b9f92e7fd
- Loading branch information