data: urls should be supported the "same" as fetched URLs, in the sense that they may be aborted, and should support any valid data: urls, whether base64 encoded or not.
const c = new AbortController()
fetch('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ==', { signal: c.signal })
.then(r => console.log(r), e => console.error(e))
c.abort()
Expect it to fail with an AbortError. Instead it works. (This mirrors node-fetch, but diverges from browser fetch.)
What / Why
data:
urls should be supported the "same" as fetched URLs, in the sense that they may be aborted, and should support any validdata:
urls, whether base64 encoded or not.Expect it to fail with an AbortError. Instead it works. (This mirrors
node-fetch
, but diverges from browser fetch.)Expect: load all data urls. Actual: fails because they are not base64 encoded.
Again, mirrors node-fetch, but not browser fetch.