LibWeb: Modify createObjectURL to return Utf16Strings

This commit is contained in:
Tete17
2025-08-17 10:21:56 +02:00
committed by Jelle Raaijmakers
parent a04f2d0796
commit f60529dac5
Notes: github-actions[bot] 2025-08-19 21:51:48 +00:00
5 changed files with 10 additions and 10 deletions

View File

@@ -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));