Closed Bug 2078461 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63282 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326351

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anne van Kesteren <annevk@annevk.nl> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326351

WebKit export from bug: Cross-Origin-Embedder-Policy should be ignored in non-secure contexts

<pre>
Cross-Origin-Embedder-Policy should be ignored in non-secure contexts

An embedder policy is only obtained for a secure context, but we only checked
the response URL, so an HTTPS document in an HTTP page, and the workers it
creates, still required CORP.

obtainCrossOriginEmbedderPolicy() and obtainOriginAgentClusterPolicy() now take
whether the environment is a secure context, rather than each guessing from the
response URL. A document uses Document::isSecureContext() and a worker uses its
owner's.

With site isolation, Document::isSecureContext() is asked before a provisional
frame is added to the frame tree, so it now also checks the main frame when
there is no parent yet.

This is a first step towards determining once per navigation whether the
reserved environment is a secure context, as HTML does. Document-Isolation-Policy
will need that as well, and Document::isSecureContext() could then stop walking
the frame tree.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326351">https://bugs.webkit.org/show_bug.cgi?id=326351</a>
</pre>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 104 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 89[Gecko-linux2404-64-debug] 90[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 91[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[GitHub] 398[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug] 402[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 53

Chrome

OK : 1
PASS: 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.