mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
This required some changes in LibURL & LibIPC since it has its own definition of an BlobURLEntry. For now, we don't have a concrete usage of MediaSource in LibURL so it is defined as an empty struct. This removes one FIXME in an idl file.
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
#import <FileAPI/Blob.idl>
|
|
#import <DOMURL/URLSearchParams.idl>
|
|
#import <MediaSourceExtensions/MediaSource.idl>
|
|
|
|
// https://url.spec.whatwg.org/#url
|
|
[Exposed=*, LegacyWindowAlias=webkitURL, ImplementedAs=DOMURL]
|
|
interface URL {
|
|
constructor(USVString url, optional USVString base);
|
|
|
|
[ImplementedAs=parse_for_bindings] static DOMURL? parse(USVString url, optional USVString base);
|
|
static boolean canParse(USVString url, optional USVString base);
|
|
|
|
stringifier attribute USVString href;
|
|
readonly attribute USVString origin;
|
|
attribute USVString protocol;
|
|
attribute USVString username;
|
|
attribute USVString password;
|
|
attribute USVString host;
|
|
attribute USVString hostname;
|
|
attribute USVString port;
|
|
attribute USVString pathname;
|
|
attribute USVString search;
|
|
[SameObject] readonly attribute URLSearchParams searchParams;
|
|
attribute USVString hash;
|
|
|
|
USVString toJSON();
|
|
|
|
static Utf16DOMString createObjectURL((Blob or MediaSource) obj);
|
|
static undefined revokeObjectURL(DOMString url);
|
|
};
|