1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibWeb: Implement URL.createObjectURL and URL.revokeObjectURL

This commit is contained in:
Timothy Flynn 2023-08-01 18:49:32 -04:00 committed by Linus Groh
parent dd36a0c12d
commit 9957d48f48
3 changed files with 40 additions and 0 deletions

View file

@ -24,6 +24,9 @@ public:
virtual ~URL() override;
static WebIDL::ExceptionOr<String> create_object_url(JS::VM&, JS::NonnullGCPtr<FileAPI::Blob> object);
static WebIDL::ExceptionOr<void> revoke_object_url(JS::VM&, StringView url);
static bool can_parse(JS::VM&, String const& url, Optional<String> const& base = {});
WebIDL::ExceptionOr<String> href() const;