Closed Bug 1689514 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 27380 - PlzDedicatedWorker: Send COEP report for worker initialization failure

Categories

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

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Asami Doi <asamidoi@chromium.org>' wrote:

PlzDedicatedWorker: Send COEP report for worker initialization failure

This CL sends COEP violation reports during the worker initialization
process.

The corresponded spec is here:
https://html.spec.whatwg.org/C/#check-a-global-object's-embedder-policy

  1. If ownerPolicy's report-only value is "require-corp" and policy's
    value is "unsafe-none", then queue a cross-origin embedder policy
    inheritance violation with response, "worker initialization", owner's
    policy's report only reporting endpoint, "reporting", and owner.
  2. Queue a cross-origin embedder policy inheritance violation with
    response, "worker initialization", owner's policy's reporting endpoint,
    "enforce", and owner.

Also adds WPT to check if the owner iframe can observe reports via
ReportingObserver API. Tests pass with PlzDedicatedWorker and fail with
non-PlzDedicatedWorker.

Bug: 1171094, 1060837
Change-Id: Ida5eab351879a6793c412dccc8b0cff38c38e906
Reviewed-on: https://chromium-review.googlesource.com/2650015
WPT-Export-Revision: daee5293919a3a7230bc3b82953eefe4f523aacd

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

CI Results

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

Total 1 tests and 9 subtests

Status Summary

Firefox

PASS : 3
TIMEOUT: 2
NOTRUN : 5

Chrome

PASS : 3
TIMEOUT: 2
NOTRUN : 5

Safari

PASS : 3
TIMEOUT: 2
NOTRUN : 5

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/cross-origin-embedder-policy/reporting-to-owner.https.html: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Reporting to coep-report-only frame with coep-none worker: TIMEOUT (Chrome: TIMEOUT, Safari: TIMEOUT)
Reporting to coep-report-only frame with coep-report-only worker: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Reporting to coep-report-only frame with coep-require-corp worker: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Reporting to coep-require-corp frame with coep-none worker: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Reporting to coep-require-corp frame with coep-report-only worker: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)
Reporting to coep-require-corp frame with coep-require-corp worker: NOTRUN (Chrome: NOTRUN, Safari: NOTRUN)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/28c6d185fee7 [wpt PR 27380] - PlzDedicatedWorker: Send COEP report for worker initialization failure, a=testonly https://hg.mozilla.org/integration/autoland/rev/b61576b0a17d [wpt PR 27380] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.