mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 23:26:36 +00:00
LibWeb: Add support for XHR response type Blob
This commit is contained in:
parent
df8c49f6bf
commit
5806eeec08
Notes:
sideshowbarker
2024-07-17 08:52:48 +09:00
Author: https://github.com/kennethmyhra
Commit: 5806eeec08
Pull-request: https://github.com/SerenityOS/serenity/pull/14563
Reviewed-by: https://github.com/Lubrsi
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
3 changed files with 13 additions and 2 deletions
|
@ -194,4 +194,9 @@ JS::Promise* Blob::array_buffer()
|
|||
return promise;
|
||||
}
|
||||
|
||||
JS::Object* Blob::create_wrapper(JS::GlobalObject& global_object)
|
||||
{
|
||||
return wrap(global_object, *this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
JS::Promise* text();
|
||||
JS::Promise* array_buffer();
|
||||
|
||||
virtual JS::Object* create_wrapper(JS::GlobalObject&);
|
||||
|
||||
private:
|
||||
Blob() = default;
|
||||
static DOM::ExceptionOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue