summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/dom/URL.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/URL.idl')
-rw-r--r--chromium/third_party/WebKit/Source/core/dom/URL.idl17
1 files changed, 11 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/URL.idl b/chromium/third_party/WebKit/Source/core/dom/URL.idl
index 30c96c69db2..37b80510f3c 100644
--- a/chromium/third_party/WebKit/Source/core/dom/URL.idl
+++ b/chromium/third_party/WebKit/Source/core/dom/URL.idl
@@ -24,17 +24,22 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// http://url.spec.whatwg.org/#url
+
[
- GlobalContext=Window&WorkerGlobalScope,
- RaisesException=Constructor,
Constructor(DOMString url),
- Constructor(DOMString url, URL base),
Constructor(DOMString url, DOMString base),
- ImplementedAs=DOMURL
+ Constructor(DOMString url, URL base),
+ Exposed=Window&Worker,
+ ImplementedAs=DOMURL,
+ RaisesException=Constructor,
+ WillBeGarbageCollected,
] interface URL {
- [CallWith=ExecutionContext,TreatReturnedNullStringAs=Null] static DOMString createObjectURL(Blob? blob);
+ // FIXME: should be in separate URLBlob.idl partial interface definition
+ // http://dev.w3.org/2006/webapi/FileAPI/#URL-object
+ // FIXME: should not be nullable
+ [RaisesException, CallWith=ExecutionContext, TreatReturnedNullStringAs=Null] static DOMString createObjectURL(Blob? blob);
[CallWith=ExecutionContext] static void revokeObjectURL(DOMString url);
};
-// force rebuild: crbug.com/307023
URL implements URLUtils;