From d87274641684fac84366f4835fea880f75448942 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 4 Mar 2026 20:57:22 -0500 Subject: [PATCH] [import-bytes] add "bytes" sec-fetch-dest and accept --- fetch.bs | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/fetch.bs b/fetch.bs index 22d460293..b098cae31 100755 --- a/fetch.bs +++ b/fetch.bs @@ -1819,6 +1819,7 @@ device to assist defining CSP and Mixed Content. It is not exposed to JavaScript the empty string, "audio", "audioworklet", +"bytes", "document", "embed", "font", @@ -1874,7 +1875,7 @@ not always relevant and might require different behavior. CSP directive Features - "" + "" "report" — CSP, NEL reports. @@ -1950,6 +1951,10 @@ not always relevant and might require different behavior. "json" connect-src import "..." with { type: "json" } + + "bytes" + connect-src + import "..." with { type: "bytes" } "style" style-src @@ -2303,6 +2308,7 @@ bookkeeping details by the fetch algorithm.

A subresource request is a request whose destination is "audio", "audioworklet", +"bytes", "font", "image", "json", "manifest", "paintworklet", "script", "style", "track", "video", "xslt", or the empty string. @@ -3079,10 +3085,10 @@ optional WebTransport-hash list given key, url's origin, credentials, proxy, an implementation-defined host from hosts, timingInfo, requireUnreliable, and webTransportHashes an - implementation-defined number of times, in parallel from each other, and wait for - at least 1 to return a value. In an implementation-defined manner, select a value to - return from the returned values and return it. Any other returned values that are - connections may be closed. +implementation-defined number of times, in parallel from each other, and wait for +at least 1 to return a value. In an implementation-defined manner, select a value to +return from the returned values and return it. Any other returned values that are +connections may be closed.

Essentially this allows an implementation to pick one or more IP addresses from the return value of resolve an origin (assuming @@ -4684,6 +4690,9 @@ the response. [[!HTTP-CACHING]]

"json"
`application/json,*/*;q=0.5` +
"bytes" +
`*/*` +
"style"
`text/css,*/*;q=0.1` @@ -8414,7 +8423,7 @@ dictionary RequestInit { any window; // can only be set to null }; -enum RequestDestination { "", "audio", "audioworklet", "document", "embed", "font", "frame", "iframe", "image", "json", "manifest", "object", "paintworklet", "report", "script", "sharedworker", "style", "track", "video", "worker", "xslt" }; +enum RequestDestination { "", "audio", "audioworklet", "bytes", "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" };