2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-09-25 07:24:43 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origins of this IDL file are
|
2013-09-04 21:07:21 +04:00
|
|
|
* http://url.spec.whatwg.org/#api
|
2012-09-25 07:24:43 +04:00
|
|
|
* http://dev.w3.org/2006/webapi/FileAPI/#creating-revoking
|
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2017-05-31 22:18:19 +03:00
|
|
|
[Constructor(USVString url, optional USVString base),
|
2016-02-22 12:41:09 +03:00
|
|
|
Exposed=(Window,Worker,WorkerDebugger)]
|
2012-09-25 07:24:43 +04:00
|
|
|
interface URL {
|
2015-11-23 23:05:26 +03:00
|
|
|
// Bug 824857: no support for stringifier attributes yet.
|
|
|
|
// stringifier attribute USVString href;
|
|
|
|
|
|
|
|
// Bug 824857 should remove this.
|
2015-11-23 23:05:26 +03:00
|
|
|
stringifier;
|
|
|
|
|
2018-04-14 02:06:35 +03:00
|
|
|
[SetterThrows]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString href;
|
2018-04-14 02:06:35 +03:00
|
|
|
[GetterThrows]
|
2015-11-23 23:05:26 +03:00
|
|
|
readonly attribute USVString origin;
|
2018-04-14 02:06:35 +03:00
|
|
|
[SetterThrows]
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString protocol;
|
|
|
|
attribute USVString username;
|
|
|
|
attribute USVString password;
|
|
|
|
attribute USVString host;
|
|
|
|
attribute USVString hostname;
|
|
|
|
attribute USVString port;
|
|
|
|
attribute USVString pathname;
|
|
|
|
attribute USVString search;
|
2018-04-14 02:06:35 +03:00
|
|
|
[SameObject]
|
|
|
|
readonly attribute URLSearchParams searchParams;
|
2015-11-23 23:05:26 +03:00
|
|
|
attribute USVString hash;
|
2017-02-09 15:18:40 +03:00
|
|
|
|
|
|
|
USVString toJSON();
|
2013-09-04 21:07:21 +04:00
|
|
|
};
|
|
|
|
|
2018-08-07 14:48:51 +03:00
|
|
|
[Exposed=(Window,DedicatedWorker,SharedWorker)]
|
2013-09-04 21:07:21 +04:00
|
|
|
partial interface URL {
|
2012-09-25 07:24:43 +04:00
|
|
|
[Throws]
|
2017-02-03 10:28:52 +03:00
|
|
|
static DOMString createObjectURL(Blob blob);
|
2012-09-25 07:24:45 +04:00
|
|
|
[Throws]
|
2012-09-25 07:24:43 +04:00
|
|
|
static void revokeObjectURL(DOMString url);
|
2016-07-25 13:41:52 +03:00
|
|
|
[ChromeOnly, Throws]
|
|
|
|
static boolean isValidURL(DOMString url);
|
2012-09-25 07:24:43 +04:00
|
|
|
|
2018-08-07 14:48:51 +03:00
|
|
|
// https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html
|
2013-06-21 07:15:15 +04:00
|
|
|
[Throws]
|
2018-04-22 10:20:45 +03:00
|
|
|
static DOMString createObjectURL(MediaSource source);
|
2013-06-21 07:15:15 +04:00
|
|
|
};
|