1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +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

@ -1,3 +1,4 @@
#import <FileAPI/Blob.idl>
#import <URL/URLSearchParams.idl>
// https://url.spec.whatwg.org/#url
@ -21,4 +22,7 @@ interface URL {
attribute USVString hash;
USVString toJSON();
static DOMString createObjectURL(Blob obj); // FIXME: Should be (Blob or MediaSource).
static undefined revokeObjectURL(DOMString url);
};