From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/DOMURL.idl | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'Source/WebCore/html/DOMURL.idl') diff --git a/Source/WebCore/html/DOMURL.idl b/Source/WebCore/html/DOMURL.idl index db695aa89..b278f2667 100644 --- a/Source/WebCore/html/DOMURL.idl +++ b/Source/WebCore/html/DOMURL.idl @@ -25,14 +25,33 @@ */ [ - GlobalContext=DOMWindow&WorkerGlobalScope, - Constructor, + Exposed=(Window,Worker), + Constructor(USVString url), + Constructor(USVString url, USVString base), + Constructor(USVString url, DOMURL base), + ConstructorMayThrowException, JSGenerateToNativeObject, JSGenerateToJSObject, - JSNoStaticTables, InterfaceName=URL, ImplementationLacksVTable, + ExportMacro=WEBCORE_EXPORT, ] interface DOMURL { - [CallWith=ScriptExecutionContext,TreatReturnedNullStringAs=Null,Conditional=BLOB] static DOMString createObjectURL(Blob? blob); - [CallWith=ScriptExecutionContext,Conditional=BLOB] static void revokeObjectURL(DOMString url); + [SetterMayThrowException, URL] 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 hash; + attribute USVString search; + [CachedAttribute] readonly attribute URLSearchParams searchParams; + + USVString toJSON(); + + // https://w3c.github.io/FileAPI/#creating-revoking. + [CallWith=ScriptExecutionContext] static DOMString createObjectURL(Blob blob); + [CallWith=ScriptExecutionContext] static void revokeObjectURL(DOMString url); }; -- cgit v1.2.1