Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 2 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /fetch/orb/tentative/status.sub.any.html - WPT Dashboard Interop Dashboard
- /fetch/orb/tentative/status.sub.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/fetch/orb/resources/utils.js
expected_block(
`${path}/data.json`,
(orb_test, message) => promise_test(
t => orb_test(t, contentType("application/json"), "status(206)"),
message("ORB should block opaque-response-blocklisted MIME type with status 206")));
expected_block(
`${path}/data.json`,
(orb_test, message) =>
promise_test(
t => orb_test(t, contentType("application/json"), "status(302)"),
message("ORB should block opaque response with non-ok status")));