aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/TestWorklet.webidl
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2017-04-03 14:35:57 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-05-17 09:01:05 -0500
commitaf8436c9be4c69c07265ab1095f89982b48cdd00 (patch)
tree0a4dbfaeb69c7a1741840e94ffb88139317ef295 /components/script/dom/webidls/TestWorklet.webidl
parentabb2985ffe96485b58f6b9e5f8b2dd3641d987b7 (diff)
downloadservo-af8436c9be4c69c07265ab1095f89982b48cdd00.tar.gz
servo-af8436c9be4c69c07265ab1095f89982b48cdd00.zip
Implemented Houdini worklets.
Diffstat (limited to 'components/script/dom/webidls/TestWorklet.webidl')
-rw-r--r--components/script/dom/webidls/TestWorklet.webidl12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/script/dom/webidls/TestWorklet.webidl b/components/script/dom/webidls/TestWorklet.webidl
new file mode 100644
index 00000000000..c1f1965a1e0
--- /dev/null
+++ b/components/script/dom/webidls/TestWorklet.webidl
@@ -0,0 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// This interface is entirely internal to Servo, and should not be accessible to
+// web pages.
+
+[Pref="dom.worklet.testing.enabled", Exposed=(Window), Constructor]
+interface TestWorklet {
+ [NewObject] Promise<void> addModule(USVString moduleURL, optional WorkletOptions options);
+ DOMString? lookup(DOMString key);
+};