diff --git a/fetch.bs b/fetch.bs index 54aa2bd43..2b304c4bd 100644 --- a/fetch.bs +++ b/fetch.bs @@ -1725,6 +1725,7 @@ the empty string, "frame", "iframe", "image", +"json", "manifest", "object", "paintworklet", @@ -1744,7 +1745,7 @@ and "webidentity" as fetches with those destinations skip service w

A request's destination is @@ -1769,7 +1770,7 @@ not always relevant and might require different behavior. CSP directive Features - "" + "" "report" — CSP, NEL reports. @@ -1840,10 +1841,14 @@ not always relevant and might require different behavior. "worker" child-src, script-src, worker-src Worker + + "json" + connect-src + import "..." with { type: "json" } "style" style-src - HTML's <link rel=stylesheet>, CSS' @import + HTML's <link rel=stylesheet>, CSS' @import, import "..." with { type: "css" } "track" media-src @@ -2173,9 +2178,9 @@ bookkeeping details by the fetch algorithm.

A subresource request is a request whose destination is "audio", "audioworklet", -"font", "image", "manifest", "paintworklet", -"script", "style", "track", "video", -"xslt", or the empty string. +"font", "image", "json" "manifest", +"paintworklet", "script", "style", "track", +"video", "xslt", or the empty string.

A non-subresource request is a request whose destination is "document", "embed", @@ -4354,6 +4359,9 @@ the response. [[!HTTP-CACHING]]

"image"
`image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5` +
"json" +
`application/json,*/*;q=0.5` +
"style"
`text/css,*/*;q=0.1` @@ -7390,7 +7398,7 @@ dictionary RequestInit { any window; // can only be set to null }; -enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" }; +enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "json", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" }; enum RequestMode { "navigate", "same-origin", "no-cors", "cors" }; enum RequestCredentials { "omit", "same-origin", "include" }; enum RequestCache { "default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached" };