mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Modify createObjectURL to return Utf16Strings
This commit is contained in:
committed by
Jelle Raaijmakers
parent
a04f2d0796
commit
f60529dac5
Notes:
github-actions[bot]
2025-08-19 21:51:48 +00:00
Author: https://github.com/tete17 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f60529dac55 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5881 Reviewed-by: https://github.com/gmta ✅
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user