Bumping manifests a=b2g-bump
[gecko.git] / dom / webidl / URL.webidl
blob7fe9701043720018731c5a9f23679c0f217ba008
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origins of this IDL file are
7  * http://url.spec.whatwg.org/#api
8  * http://dev.w3.org/2006/webapi/FileAPI/#creating-revoking
9  * http://dev.w3.org/2011/webrtc/editor/getusermedia.html#url
10  *
11  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
12  * liability, trademark and document use rules apply.
13  */
15 // [Constructor(DOMString url, optional (URL or DOMString) base = "about:blank")]
16 [Constructor(DOMString url, URL base),
17  Constructor(DOMString url, optional DOMString base = "about:blank"),
18  Exposed=(Window,Worker)]
19 interface URL {
21 URL implements URLUtils;
22 URL implements URLUtilsSearchParams;
24 partial interface URL {
25   [Throws]
26   static DOMString? createObjectURL(Blob blob, optional objectURLOptions options);
27   [Throws]
28   static DOMString? createObjectURL(MediaStream stream, optional objectURLOptions options);
29   static void revokeObjectURL(DOMString url);
32 dictionary objectURLOptions
34 /* boolean autoRevoke = true; */ /* not supported yet */
37 // https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html
38 partial interface URL {
39   [Throws]
40   static DOMString? createObjectURL(MediaSource source, optional objectURLOptions options);