2023-08-01 19:49:32 -03:00
|
|
|
#import <FileAPI/Blob.idl>
|
2024-02-11 03:48:56 -03:00
|
|
|
#import <DOMURL/URLSearchParams.idl>
|
2025-08-17 19:37:34 -03:00
|
|
|
#import <MediaSourceExtensions/MediaSource.idl>
|
2022-02-15 16:10:51 -03:00
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://url.spec.whatwg.org/#url
|
2024-02-11 03:48:56 -03:00
|
|
|
[Exposed=*, LegacyWindowAlias=webkitURL, ImplementedAs=DOMURL]
|
2021-09-13 18:10:22 -03:00
|
|
|
interface URL {
|
|
|
|
|
constructor(USVString url, optional USVString base);
|
|
|
|
|
|
2024-05-13 01:10:19 -03:00
|
|
|
[ImplementedAs=parse_for_bindings] static DOMURL? parse(USVString url, optional USVString base);
|
2023-04-11 09:57:34 -03:00
|
|
|
static boolean canParse(USVString url, optional USVString base);
|
|
|
|
|
|
2021-09-13 18:13:32 -03:00
|
|
|
stringifier attribute USVString href;
|
2021-09-13 18:18:25 -03:00
|
|
|
readonly attribute USVString origin;
|
2021-09-13 18:21:51 -03:00
|
|
|
attribute USVString protocol;
|
2021-09-13 18:18:25 -03:00
|
|
|
attribute USVString username;
|
|
|
|
|
attribute USVString password;
|
2021-09-13 18:21:29 -03:00
|
|
|
attribute USVString host;
|
|
|
|
|
attribute USVString hostname;
|
|
|
|
|
attribute USVString port;
|
2021-09-13 18:21:51 -03:00
|
|
|
attribute USVString pathname;
|
|
|
|
|
attribute USVString search;
|
2021-09-13 18:15:41 -03:00
|
|
|
[SameObject] readonly attribute URLSearchParams searchParams;
|
2021-09-13 18:21:51 -03:00
|
|
|
attribute USVString hash;
|
2021-09-13 18:10:22 -03:00
|
|
|
|
2021-09-13 18:13:32 -03:00
|
|
|
USVString toJSON();
|
2023-08-01 19:49:32 -03:00
|
|
|
|
2025-08-17 19:37:34 -03:00
|
|
|
static Utf16DOMString createObjectURL((Blob or MediaSource) obj);
|
2023-08-01 19:49:32 -03:00
|
|
|
static undefined revokeObjectURL(DOMString url);
|
2021-09-13 18:10:22 -03:00
|
|
|
};
|