summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-06-11 23:20:52 +0000
committerMoonchild <moonchild@palemoon.org>2020-06-11 23:20:52 +0000
commite97a29a6569fac73e81cf46a0e682ac926ea3456 (patch)
tree65cb4710bb2b14f6ebdbcc92fb90604b1174a20e /dom/webidl
parent1620ec19653125db78f380043a52b6da6a34c281 (diff)
downloaduxp-e97a29a6569fac73e81cf46a0e682ac926ea3456.tar.gz
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 c5b1cc6da2..f5d8f317bc 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 965355c203..b4b03bb7e1 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 8c6e33da33..fe6a63ec0d 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 22075a4436..b2dcf8d8d3 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',