Closed Bug 1685707 Opened 4 years ago Closed 7 months ago

[wpt-sync] Sync PR 27103 - Move CSPEE to the NavigationRequest.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'arthursonzogni <arthursonzogni@chromium.org>' wrote:

Move CSPEE to the NavigationRequest.

Move CSPEE code from the AncestorThrottle toward the NavigationRequest.

Why?

  1. AncestorThrottle is a NavigationThrottle. NavigationThrottle doesn't
    run for several URLs like about:blank or about:srcdoc. This fixes
    two test case from bug 1163174.

  2. CSPEE can add a 'sandbox' directive. This might modify the origin.
    The origin needs to be computed before running the
    NavigationThrottle. So something needs to move, one way or another.
    Taking CSPEE into accounts will be fixed in a follow-up:
    https://chromium-review.googlesource.com/c/chromium/src/+/2614785/2

Bug:1163174
Change-Id: I97de093a05b4a71613075ad7ad1ac524c4c5caa1

Reviewed-on: https://chromium-review.googlesource.com/2617849
WPT-Export-Revision: 2f05f9678c70428c55fec11a058a18fc1591b6e4

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.