mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibWeb: Implement Blob::bytes()
Implements https://w3c.github.io/FileAPI/#dom-blob-bytes.
This commit is contained in:
parent
1ce9bbdd6d
commit
c5f1e47883
Notes:
github-actions[bot]
2024-07-26 08:22:29 +00:00
Author: https://github.com/kemzeb
Commit: c5f1e47883
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/802
Reviewed-by: https://github.com/kennethmyhra ✅
Reviewed-by: https://github.com/shannonbooth
12 changed files with 52 additions and 10 deletions
|
@ -210,7 +210,7 @@ JS::NonnullGCPtr<JS::Promise> WindowOrWorkerGlobalScopeMixin::create_image_bitma
|
|||
// 1. Let imageData be the result of reading image's data. If an error occurs during reading of the
|
||||
// object, then reject p with an "InvalidStateError" DOMException and abort these steps.
|
||||
// FIXME: I guess this is always fine for us as the data is already read.
|
||||
auto const image_data = blob->bytes();
|
||||
auto const image_data = blob->raw_bytes();
|
||||
|
||||
// FIXME:
|
||||
// 2. Apply the image sniffing rules to determine the file format of imageData, with MIME type of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue