summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/DOMURL.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/DOMURL.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/DOMURL.idl')
-rw-r--r--Source/WebCore/html/DOMURL.idl29
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);
};