[wpt-sync] Sync PR 41665 - Add tests for CSS/JSON imports fetch destination and CSP
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox121 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 41665 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/41665
Details from upstream follow.
Nicolò Ribaudo <nribaudo@igalia.com> wrote:
Add tests for CSS/JSON imports fetch destination and CSP
This PR adds tests for https://github.com/whatwg/html/pull/9486 and https://github.com/whatwg/fetch/pull/1691. I copied the style of other tests in the same directories.
cc @annevk
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 9 tests and 12 subtests
Status Summary
Firefox
OK : 4[GitHub] 5[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt]
PASS : 97
FAIL : 12
ERROR : 4[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] 5[GitHub]
Chrome
OK : 6
PASS : 92
FAIL : 19
TIMEOUT: 4
ERROR : 1
Safari
OK : 7
PASS : 86
FAIL : 26
TIMEOUT: 2
ERROR : 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /content-security-policy/connect-src/connect-src-json-import-allowed.sub.html [wpt.fyi]:
ERROR - /content-security-policy/style-src/import-style-allowed.sub.html [wpt.fyi]:
ERROR - /fetch/api/request/destination/fetch-destination.https.html [wpt.fyi]
- HTMLLinkElement with rel=preload and as=audio fetches with a "audio" Request.destination:
FAIL - HTMLLinkElement with rel=preload and as=video fetches with a "video" Request.destination:
FAIL - HTMLLinkElement with rel=preload and as=track fetches with a "track" Request.destination:
FAIL
- HTMLLinkElement with rel=preload and as=audio fetches with a "audio" Request.destination:
New Tests That Don't Pass
- /content-security-policy/connect-src/connect-src-json-import-allowed.sub.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:OK) - /content-security-policy/connect-src/connect-src-json-import-blocked.sub.html [wpt.fyi]:
ERROR(Chrome:TIMEOUT, Safari:OK) - /content-security-policy/style-src/import-style-allowed.sub.html [wpt.fyi]:
ERROR(Chrome:OK, Safari:OK) - /content-security-policy/style-src/import-style-blocked.sub.html [wpt.fyi]:
ERROR(Chrome:TIMEOUT, Safari:TIMEOUT) - /fetch/api/request/destination/fetch-destination.https.html [wpt.fyi]
- Import declaration with
type: "css"fetches with a "style" Request.destination:FAIL(Chrome:FAIL, Safari:FAIL) - Import declaration with
type: "json"fetches with a "json" Request.destination:FAIL(Chrome:FAIL, Safari:FAIL) - HTMLLinkElement with rel=preload and as=audio fetches with a "audio" Request.destination:
FAIL(Chrome:PASS, Safari:PASS) - HTMLLinkElement with rel=preload and as=video fetches with a "video" Request.destination:
FAIL(Chrome:PASS, Safari:PASS) - HTMLLinkElement with rel=preload and as=track fetches with a "track" Request.destination:
FAIL(Chrome:PASS, Safari:PASS)
- Import declaration with
- /preload/modulepreload-as.html [wpt.fyi]:
ERROR[GitHub],OK[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview,Gecko-android-em-7.0-x86_64-qr-debug-geckoview,Gecko-android-em-7.0-x86_64-qr-opt-geckoview,Gecko-linux1804-64-qr-debug,Gecko-linux1804-64-qr-opt,Gecko-windows11-32-2009-qr-debug,Gecko-windows11-32-2009-qr-opt,Gecko-windows11-64-2009-qr-debug,Gecko-windows11-64-2009-qr-opt] (Chrome:ERROR, Safari:ERROR)- Modulepreload with as="json":
FAIL(Chrome:PASS, Safari:FAIL)
- Modulepreload with as="json":
- /preload/preload-csp.sub.html [wpt.fyi]
- Preload requests are blocked by CSP.:
FAIL(Chrome:FAIL, Safari:FAIL)
- Preload requests are blocked by CSP.:
- /preload/preload-type-match.html [wpt.fyi]
- Preload with {as=track; type=text/vtt} should load when retrieved resource is a track:
FAIL(Chrome:FAIL, Safari:PASS) - Preload with {as=json; type=application/json} should load when retrieved resource is a json:
FAIL(Chrome:FAIL, Safari:FAIL) - Preload with {as=json; type=text/json} should load when retrieved resource is a json:
FAIL(Chrome:FAIL, Safari:FAIL) - Preload with {as=json; type=application/geo+json} should load when retrieved resource is a json:
FAIL(Chrome:FAIL, Safari:FAIL)
- Preload with {as=track; type=text/vtt} should load when retrieved resource is a track:
- /preload/reflected-as-value.html [wpt.fyi]
- Link preload "as" value for "json" should be "json".:
FAIL(Chrome:FAIL, Safari:FAIL)
- Link preload "as" value for "json" should be "json".:
Comment 5•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/385c14a784cc
https://hg.mozilla.org/mozilla-central/rev/57f06c251703
Description
•