Closed Bug 1695112 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 27535 - [WPT/content-security-policy] Add generated tests

Categories

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

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

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

Attachments

(1 file)

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

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

b'Hiroshige Hayashizaki <hiroshige@chromium.org>' wrote:

[WPT/content-security-policy] Add generated tests

This CL adds generated CSP tests using
/wpt/common/security-features/tools/generate.py
under
/wpt/content-security-policy/gen/,
primarily to add comprehensive test coverage around workers.

This CL only adds tests for

  • worker-src and script-src directives
  • worker- and script-related subresource requests
  • on top-level Documents.

This CL doesn't remove manually-written tests
with similar test coverage, because it would still need
careful comparison of test coverage and
adding more test assertions in
/wpt/content-security-policy/generic/test-case.sub.js.

The failures on Chromium are about the lack of
securitypolicyviolation events due to https://crbug.com/928964.

The failures on other browsers are, as far as I briefly looked at,
about the lack of securitypolicyviolation events, or
due to unimplemented support for underlying features
like (module) SharedWorkers.

Bug: 928964, 1179832
Change-Id: Ib1b81827ab2547a6c59071b2f1a6613c9f9a32e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2681956
Reviewed-by: Andy Paicu \<andypaicu@chromium.org>
Commit-Queue: Hiroshige Hayashizaki \<hiroshige@chromium.org>
Cr-Commit-Position: refs/heads/master@{#857969}

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Attached file Notable wpt changes
# CI Results Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI Total 260 tests and 12 subtests ## Status Summary ### Firefox OK : 260 PASS: 1732 FAIL: 748 ### Chrome OK : 260 PASS: 2288 FAIL: 192 ### Safari OK : 260 PASS: 1428 FAIL: 1052 ## Links [Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=e8ebceab0f75d6b67625c6ac2578d0ef850a9196) [GitHub PR Head](https://wpt.fyi/results/?sha=e76abf28646938225b67e0ee93c34d188e58e38d&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=e76abf28646938225b67e0ee93c34d188e58e38d&label=pr_base) ## Details (See attachment for full changes)
Whiteboard: [wptsync downstream] → [wptsync downstream][domsecurity-backlog]
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a38522fd269a [wpt PR 27535] - [WPT/content-security-policy] Add generated tests, a=testonly https://hg.mozilla.org/integration/autoland/rev/e154d259a587 [wpt PR 27535] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: