summaryrefslogtreecommitdiffstats
path: root/dom/webidl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-11 23:20:52 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-06-13 11:52:30 +0200
commit21403c31e0288ad3c1921019f6f6185a0019a9a4 (patch)
treebff457beb30b4756147a78d6c3b9f6e0f0e1baf8 /dom/webidl
parent29bca891d5ca243774a7355fc3a6a68903f0d596 (diff)
downloadUXP-21403c31e0288ad3c1921019f6f6185a0019a9a4.tar
UXP-21403c31e0288ad3c1921019f6f6185a0019a9a4.tar.gz
UXP-21403c31e0288ad3c1921019f6f6185a0019a9a4.tar.lz
UXP-21403c31e0288ad3c1921019f6f6185a0019a9a4.tar.xz
UXP-21403c31e0288ad3c1921019f6f6185a0019a9a4.zip
Issue #1587 - Part 7: Rename FetchController to AbortController
Also renames FetchSignal to AbortSignal. Includes renaming the various controlling prefs to enable.
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/AbortController.webidl (renamed from dom/webidl/FetchController.webidl)10
-rw-r--r--dom/webidl/AbortSignal.webidl (renamed from dom/webidl/FetchSignal.webidl)4
-rw-r--r--dom/webidl/Request.webidl4
-rw-r--r--dom/webidl/moz.build4
4 files changed, 11 insertions, 11 deletions
diff --git a/dom/webidl/FetchController.webidl b/dom/webidl/AbortController.webidl
index c5b1cc6da..f5d8f317b 100644
--- a/dom/webidl/FetchController.webidl
+++ b/dom/webidl/AbortController.webidl
@@ -5,11 +5,11 @@
*/
[Constructor(), Exposed=(Window,Worker),
- Func="FetchController::IsEnabled"]
-interface FetchController {
- readonly attribute FetchSignal signal;
+ Func="AbortController::IsEnabled"]
+interface AbortController {
+ readonly attribute AbortSignal signal;
void abort();
- void follow(FetchSignal signal);
- void unfollow(FetchSignal signal);
+ void follow(AbortSignal signal);
+ void unfollow(AbortSignal signal);
};
diff --git a/dom/webidl/FetchSignal.webidl b/dom/webidl/AbortSignal.webidl
index 965355c20..b4b03bb7e 100644
--- a/dom/webidl/FetchSignal.webidl
+++ b/dom/webidl/AbortSignal.webidl
@@ -5,8 +5,8 @@
*/
[Exposed=(Window,Worker),
- Func="FetchController::IsEnabled"]
-interface FetchSignal : EventTarget {
+ Func="AbortController::IsEnabled"]
+interface AbortSignal : EventTarget {
readonly attribute boolean aborted;
attribute EventHandler onabort;
diff --git a/dom/webidl/Request.webidl b/dom/webidl/Request.webidl
index 8c6e33da3..fe6a63ec0 100644
--- a/dom/webidl/Request.webidl
+++ b/dom/webidl/Request.webidl
@@ -48,8 +48,8 @@ dictionary RequestInit {
RequestRedirect redirect;
DOMString integrity;
- [Func="FetchController::IsEnabled"]
- FetchSignal signal;
+ [Func="AbortController::IsEnabled"]
+ AbortSignal signal;
[Func="FetchObserver::IsEnabled"]
ObserverCallback observe;
diff --git a/dom/webidl/moz.build b/dom/webidl/moz.build
index 0963e3d01..d8309c265 100644
--- a/dom/webidl/moz.build
+++ b/dom/webidl/moz.build
@@ -17,6 +17,8 @@ PREPROCESSED_WEBIDL_FILES = [
]
WEBIDL_FILES = [
+ 'AbortController.webidl',
+ 'AbortSignal.webidl',
'AbstractWorker.webidl',
'AnalyserNode.webidl',
'Animatable.webidl',
@@ -141,10 +143,8 @@ WEBIDL_FILES = [
'ExtendableMessageEvent.webidl',
'FakePluginTagInit.webidl',
'Fetch.webidl',
- 'FetchController.webidl',
'FetchEvent.webidl',
'FetchObserver.webidl',
- 'FetchSignal.webidl',
'File.webidl',
'FileList.webidl',
'FileMode.webidl',