Bug 184886 - WebAssembly: add support for stream APIs - JavaScript API: Implement loading for the Blob type
Summary: WebAssembly: add support for stream APIs - JavaScript API: Implement loading ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 183442
Blocks: 173105
  Show dependency treegraph
 
Reported: 2018-04-23 09:34 PDT by GSkachkov
Modified: 2019-05-10 09:19 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GSkachkov 2018-04-23 09:34:26 PDT
Implement loading for the Blob type for streaming API, currently implemented SharedBuffer
Comment 1 JF Bastien 2018-04-23 09:38:59 PDT
You mean this: https://developer.mozilla.org/en-US/docs/Web/API/Blob ?
Comment 2 GSkachkov 2018-04-23 09:49:22 PDT
(In reply to JF Bastien from comment #1)
> You mean this: https://developer.mozilla.org/en-US/docs/Web/API/Blob ?

Yeah, this currently fails:
```
const blob = new Blob(...);
WebAssembly.instantiateStreaming(new Response(blob, { headers: { "Content-Type" : "application/wasm" }}));
```

currently my patch support only Responses manually created from  ReadableStream:
```
const stream = new ReadableStream(...);
WebAssembly.instantiateStreaming(new Response(stream, { headers: { "Content-Type" : "application/wasm" }}));
```