Issue #1587 - Part 7: Rename FetchController to AbortController

Also renames FetchSignal to AbortSignal. Includes renaming the various
controlling prefs to enable.
This commit is contained in:
Moonchild 2020-06-11 23:20:52 +00:00 committed by Roy Tam
commit b988c351ff
21 changed files with 142 additions and 142 deletions

View file

@ -1,6 +1,6 @@
[DEFAULT]
support-files =
file_fetch_controller.html
file_abort_controller.html
worker_fetch_controller.js
[test_fetch_controller.html]
[test_abort_controller.html]

View file

@ -1,5 +1,5 @@
function testWorkerAbortedFetch() {
var fc = new FetchController();
var fc = new AbortController();
fc.abort();
fetch('slow.sjs', { signal: fc.signal }).then(() => {
@ -10,7 +10,7 @@ function testWorkerAbortedFetch() {
}
function testWorkerFetchAndAbort() {
var fc = new FetchController();
var fc = new AbortController();
var p = fetch('slow.sjs', { signal: fc.signal });
fc.abort();