mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 15:09:42 +00:00
LibWeb: Modify createObjectURL to return Utf16Strings
This commit is contained in:
parent
a04f2d0796
commit
f60529dac5
Notes:
github-actions[bot]
2025-08-19 21:51:48 +00:00
Author: https://github.com/tete17
Commit: f60529dac5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5881
Reviewed-by: https://github.com/gmta ✅
5 changed files with 10 additions and 10 deletions
|
@ -120,7 +120,7 @@ void DOMURL::visit_edges(Cell::Visitor& visitor)
|
|||
}
|
||||
|
||||
// https://w3c.github.io/FileAPI/#dfn-createObjectURL
|
||||
WebIDL::ExceptionOr<String> DOMURL::create_object_url(JS::VM& vm, GC::Ref<FileAPI::Blob> object)
|
||||
WebIDL::ExceptionOr<Utf16String> DOMURL::create_object_url(JS::VM& vm, GC::Ref<FileAPI::Blob> object)
|
||||
{
|
||||
// The createObjectURL(obj) static method must return the result of adding an entry to the blob URL store for obj.
|
||||
return TRY_OR_THROW_OOM(vm, FileAPI::add_entry_to_blob_url_store(object));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue