summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-02-06 13:54:40 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-07 14:39:41 +0000
commit6f8d063b186022997303d33e33c008741c86ca78 (patch)
treea9765fb5754a8d7fdd9e4384671fd28138c209bb /dom/webidl
parenta5b4a440d6ccecf03fd694e0c225caf4482e3aca (diff)
downloaduxp-6f8d063b186022997303d33e33c008741c86ca78.tar.gz
Issue #1895 - Implement queueMicroTask(callback())
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/Function.webidl8
-rw-r--r--dom/webidl/WindowOrWorkerGlobalScope.webidl3
2 files changed, 8 insertions, 3 deletions
diff --git a/dom/webidl/Function.webidl b/dom/webidl/Function.webidl
index 55bec0811c..3b44ee111c 100644
--- a/dom/webidl/Function.webidl
+++ b/dom/webidl/Function.webidl
@@ -6,9 +6,11 @@
* The origin of this IDL file is
* http://www.whatwg.org/specs/web-apps/current-work/#functiocn
*
- * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
- * Opera Software ASA. You are granted a license to use, reproduce
- * and create derivative works of this document.
+ * © Copyright 2004-2022 Apple Computer, Inc., Mozilla Foundation,
+ * Opera Software ASA and Moonchild Productions. You are granted a license to use,
+ * reproduce and create derivative works of this document.
*/
callback Function = any(any... arguments);
+
+callback VoidFunction = void ();
diff --git a/dom/webidl/WindowOrWorkerGlobalScope.webidl b/dom/webidl/WindowOrWorkerGlobalScope.webidl
index dddf2d17c4..652a46ffcb 100644
--- a/dom/webidl/WindowOrWorkerGlobalScope.webidl
+++ b/dom/webidl/WindowOrWorkerGlobalScope.webidl
@@ -36,6 +36,9 @@ interface WindowOrWorkerGlobalScope {
long setInterval(DOMString handler, optional long timeout, any... unused);
void clearInterval(optional long handle = 0);
+ // microtask queuing
+ void queueMicrotask(VoidFunction callback);
+
// ImageBitmap
[Throws]
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource aImage);