orb
orb copied to clipboard
Opaque Response Blocking (CORB++)
As discussed in https://github.com/whatwg/html/issues/6468 we need to make adjustments to handle HTTP Live Streaming correctly.
To gracefully handle future image types (e.g. `image/foobar`) would it be desirable to change step 5 from If mimeType's essence is "image/svg+xml", then return true. to If mimeType's essence starts...
We might not always have an encoding, e.g., `fetch(..., { mode: "no-cors" })`. Is it reasonable to always use UTF-8 for this check?
To allow range responses (206 HTTP status code) ORB remembers URLs of earlier responses that sniffed as audio/video. This works under an assumption that a middle-of-resource range responses are always...
There is a difference between CORB and ORB behavior (I've detected the difference when applying CORB tests to an initial implementation of CORB->ORB transition): - Current CORB implementation always (for...
The algorithm doesn't seem give a size limit on how much body is loaded into memory to try and parse as JSON. Caching arbitrary amounts of data in memory to...
@tomrittervg inspired me to revisit https://github.com/whatwg/fetch/issues/964 which is the main reason we have this step currently: > If _mimeType_ is failure, then return true. At this point in the algorithm...
Reading @anforowicz's [Gradual CORB -> ORB transition](https://docs.google.com/document/d/1qUbE2ySi6av3arUEw5DNdFJIKKBbWGRGsXz_ew3S7HQ/edit) it occurred to me there's another way we attempt to avoid hitting the expensive option. By checking if the file starts with `%PDF-`...
As spec-ed today, ORB will block `application/signed-exchange` responses. AFAIU this will break some `SignedExchangePrefetchBrowserTest` browser tests in Chromium. I don't know if there is WPT coverage. At any rate, the...
Closes https://github.com/annevk/orb/issues/3 (makes ORB work with future image types) Helps with https://github.com/annevk/orb/issues/29 (only helps if correct MIME types are used) Helps avoid multimedia sniffing step in some cases (e.g. `application/ogg`...