Closed Bug 1697750 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 27930 - Pass initiator frame token for location.reload()

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream][domsecurity-backlog])

Sync web-platform-tests PR 27930 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27930
Details from upstream follow.

b'Antonio Sartori <antoniosartori@chromium.org>' wrote:

Pass initiator frame token for location.reload()

Previously, we were treating navigations initiated by
location.reload() in the renderer as navigations without initiator. It
seems better to let the initiator be the window being reloaded (as it
happens, for example, for a reload initiated by a refresh meta tag).
This has the effect that in the browser process we correctly inherit
the policy container policies.

Change-Id: Id0951b3602ea889fee0f465afbda645b6b1d3cbd
Fixed: 1185145
Bug: 1185145
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2739605
Reviewed-by: Arthur Sonzogni \<arthursonzogni@chromium.org>
Reviewed-by: Daniel Cheng \<dcheng@chromium.org>
Commit-Queue: Antonio Sartori \<antoniosartori@chromium.org>
Cr-Commit-Position: refs/heads/master@{#861882}

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]

CI Results

Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 3 subtests

Status Summary

Firefox

OK : 1
PASS : 3

Chrome

OK : 1
PASS : 3

Safari

PASS : 1
TIMEOUT: 2
NOTRUN : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ff4e362f386a
[wpt PR 27930] - Pass initiator frame token for location.reload(), a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.