[wpt-sync] Sync PR 27535 - [WPT/content-security-policy] Add generated tests
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream][domsecurity-backlog])
Attachments
(1 file)
145.51 KB,
text/plain
|
Details |
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}
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a38522fd269a
https://hg.mozilla.org/mozilla-central/rev/e154d259a587
Description
•