[wpt-sync] Sync PR 18812 - [DO NOT REVIEW] Move websocket-request,picture-tag,img-tag,classic-data-worker-fetch,fetch-request,video-tag,object-tag,worker-request,link-prefetch-tag,module-worker-top-level,audio-tag,beacon-request,module-data-worker-import…
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream][domsecurity-backlog])
Sync web-platform-tests PR 18812 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18812
Details from upstream follow.
Hiroshige Hayashizaki <hiroshige@chromium.org> wrote:
[DO NOT REVIEW] Move websocket-request,picture-tag,img-tag,classic-data-worker-fetch,fetch-request,video-tag,object-tag,worker-request,link-prefetch-tag,module-worker-top-level,audio-tag,beacon-request,module-data-worker-import,script-tag,link-css-tag (1)
fix
revert
fix lint
format
[WPT/common/security-features] Support nested source contexts
To enable
spec.src.jsonto specify (possibly nested) source contexts,
this CL addssource_context_list_schemathat represents
source contexts from where subresource requests are sent,
and how policies are delivered (by source contexts or subresource requests).
This CL addssource_context_listfield to eachtest_expansionentry,
of which value is the key ofsource_context_list_schemato be used.This CL adds
source_context_schemaandsubresource_schema
that represent supported delivery types and subresources
for each source context or subresource type. These are used:
- To filter out test files for unsupported combinations of delivery types,
source contexts and subresources.
A part of the filtering was removed in
https://chromium-review.googlesource.com/c/chromium/src/+/1717535
and this CL re-adds it (in a different form of implementation).- To determine what delivery types should be used for
anotherPolicy
placeholder.After this CL, the generate.py generates
source_context_listand
subresource_policy_deliveriesfields that are passed directly
without coversion.
Specifically,
- The conversion from
classic-data-worker-fetchto
classic-data-worker+fetch-requestin mixed-content-test-case.js
is removed.- \<iframe srcdoc>-related tests for
img-tagreferrer-policy tests
are split into separate tests, and related code in
referrer-policy-test-case.sub.js is removed.
Instead, to support tests inside \<iframe srcdoc>, this CL adds
referrerSourcecalculation that can support \<iframe srcdoc>s.This CL also changes the structure of generated file names.
Now all files are generated under a dedicated directorygen/.This CL creates
test-case.sub.jsinstead of modifying
referrer-policy-test-case.sub.jsetc., because:
After this CL, I'll commit new generated test HTML files,
incrementally in order to monitor potential regressions,
Because thousands of files are modified, split, and renamed.
During the incremental commits,test-case.sub.jsis used
by new generated tests while
referrer-policy-test-case.sub.jsetc. are still used by
old tests.
After all commits are done,referrer-policy-test-case.sub.js
etc. will be removed.
test-case.sub.jsreflects renaming of JSON keys and values done
in previous commits.
- opt_in_method -> delivery_type/value
https://chromium-review.googlesource.com/c/chromium/src/+/1717107- delivery_method -> delivery_type
https://chromium-review.googlesource.com/c/chromium/src/+/1716109- referrer_policy -> delivery_value
https://chromium-review.googlesource.com/c/chromium/src/+/1717592- source_protocol -> source_scheme
https://chromium-review.googlesource.com/c/chromium/src/+/1717115
https://chromium-review.googlesource.com/c/chromium/src/+/1718991- target_protocol + origin -> origin
https://chromium-review.googlesource.com/c/chromium/src/+/1717470- Use shorter values for origin and redirection
https://chromium-review.googlesource.com/c/chromium/src/+/1717475- referrer_url -> expectation
https://chromium-review.googlesource.com/c/chromium/src/+/1717319Bug: 906850
Change-Id: Ia6695081e5a93355c29fb1bdb7e89ba6b673261fRemove fetch-request guard and fix typos
revert sub
Add more validation + rename
more
more
Reorder path
Change-Id: Ice864d30c7b173a1c863b2e0dd40b351e34173da
Reviewed-on: https://chromium-review.googlesource.com/1782135
WPT-Export-Revision: 99f4b71079dbded5e982f59dcc5962cf5c5e9fe1
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 6•6 years ago
|
||
Comment 8•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/2aaca64b263f
https://hg.mozilla.org/mozilla-central/rev/db58c82ab353
Description
•