summaryrefslogtreecommitdiffstats
path: root/dom/webidl/URL.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl/URL.webidl')
-rw-r--r--dom/webidl/URL.webidl37
1 files changed, 19 insertions, 18 deletions
diff --git a/dom/webidl/URL.webidl b/dom/webidl/URL.webidl
index 9cdd7f7aac..1f1d709b08 100644
--- a/dom/webidl/URL.webidl
+++ b/dom/webidl/URL.webidl
@@ -17,43 +17,44 @@ interface URI;
LegacyWindowAlias=webkitURL]
interface URL {
[Throws]
- constructor(USVString url, optional USVString base);
+ constructor(UTF8String url, optional UTF8String base);
- static boolean canParse(USVString url, optional USVString base);
+ static URL? parse(UTF8String url, optional UTF8String base);
+ static boolean canParse(UTF8String url, optional UTF8String base);
[SetterThrows]
- 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;
+ stringifier attribute UTF8String href;
+ readonly attribute UTF8String origin;
+ attribute UTF8String protocol;
+ attribute UTF8String username;
+ attribute UTF8String password;
+ attribute UTF8String host;
+ attribute UTF8String hostname;
+ attribute UTF8String port;
+ attribute UTF8String pathname;
+ attribute UTF8String search;
[SameObject]
readonly attribute URLSearchParams searchParams;
- attribute USVString hash;
+ attribute UTF8String hash;
[ChromeOnly]
readonly attribute URI URI;
[ChromeOnly]
static URL fromURI(URI uri);
- USVString toJSON();
+ UTF8String toJSON();
};
[Exposed=(Window,DedicatedWorker,SharedWorker)]
partial interface URL {
[Throws]
- static DOMString createObjectURL(Blob blob);
+ static UTF8String createObjectURL(Blob blob);
[Throws]
- static undefined revokeObjectURL(DOMString url);
+ static undefined revokeObjectURL(UTF8String url);
[ChromeOnly, Throws]
- static boolean isValidObjectURL(DOMString url);
+ static boolean isValidObjectURL(UTF8String url);
// https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html
[Throws]
- static DOMString createObjectURL(MediaSource source);
+ static UTF8String createObjectURL(MediaSource source);
};