summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/AbortController.idl
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2021-09-02 02:12:49 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-02 09:12:17 +0200
commit1d8f8ea5b141d969803ba060cd0f15f2137a1758 (patch)
tree4eea8cadebd9e5247bc009d472cd5e8d617ce67d /Userland/Libraries/LibWeb/DOM/AbortController.idl
parentdd1a49ff93cfed8bfaaaa90afdc2b75b280099df (diff)
downloadserenity-1d8f8ea5b141d969803ba060cd0f15f2137a1758.zip
LibWeb: Add initial support for AbortController and AbortSignal
The DOM specification says that the primary use case for these is to give Promises abort semantics. It is also a prerequisite for Fetch, as it is used to make Fetch abortable. a
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/AbortController.idl')
-rw-r--r--Userland/Libraries/LibWeb/DOM/AbortController.idl8
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/AbortController.idl b/Userland/Libraries/LibWeb/DOM/AbortController.idl
new file mode 100644
index 0000000000..4877c9295e
--- /dev/null
+++ b/Userland/Libraries/LibWeb/DOM/AbortController.idl
@@ -0,0 +1,8 @@
+[Exposed=(Window,Worker)]
+interface AbortController {
+ constructor();
+
+ [SameObject] readonly attribute AbortSignal signal;
+
+ undefined abort();
+};