diff options
Diffstat (limited to 'Source/WebCore/html/DOMURL.idl')
-rw-r--r-- | Source/WebCore/html/DOMURL.idl | 29 |
1 files changed, 24 insertions, 5 deletions
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); }; |