Enable abort controller preference for fetch/api/abort (#39282)

This sets a baseline of tests for fetch-related implementation of
AbortController.

Part of #34866

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-09-13 11:14:13 +02:00 committed by GitHub
parent c11670b067
commit 5beb16d671
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 197 deletions

View file

@ -0,0 +1,3 @@
prefs: [
"dom_abort_controller_enabled:true",
]

View file

@ -1,2 +0,0 @@
[destroyed-context.html]
expected: ERROR

View file

@ -5,6 +5,7 @@
expected: ERROR
[general.any.html]
expected: TIMEOUT
[Aborting rejects with AbortError]
expected: FAIL
@ -69,31 +70,31 @@
expected: FAIL
[Fetch aborted & connection closed when aborted after calling response.arrayBuffer()]
expected: FAIL
expected: TIMEOUT
[Fetch aborted & connection closed when aborted after calling response.blob()]
expected: FAIL
expected: NOTRUN
[Fetch aborted & connection closed when aborted after calling response.formData()]
expected: FAIL
expected: NOTRUN
[Fetch aborted & connection closed when aborted after calling response.json()]
expected: FAIL
expected: NOTRUN
[Fetch aborted & connection closed when aborted after calling response.text()]
expected: FAIL
expected: NOTRUN
[Stream errors once aborted. Underlying connection closed.]
expected: FAIL
expected: NOTRUN
[Stream errors once aborted, after reading. Underlying connection closed.]
expected: FAIL
expected: NOTRUN
[Stream will not error if body is empty. It's closed with an empty queue before it errors.]
expected: FAIL
expected: NOTRUN
[Readable stream synchronously cancels with AbortError if aborted before reading]
expected: FAIL
expected: NOTRUN
[Signal state is cloned]
expected: FAIL
@ -111,61 +112,11 @@
expected: FAIL
[Fetch aborted & connection closed when aborted after calling response.bytes()]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's window is not null]
expected: FAIL
[TypeError from request constructor takes priority - Input URL is not valid]
expected: FAIL
[TypeError from request constructor takes priority - Input URL has credentials]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's mode is navigate]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's referrer is invalid]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's method is invalid]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's method is forbidden]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's mode is no-cors and method is not simple]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's cache mode is only-if-cached and mode is not same-origin]
expected: FAIL
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode cors]
expected: FAIL
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode no-cors]
expected: FAIL
[TypeError from request constructor takes priority - Bad referrerPolicy init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad mode init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad credentials init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad cache init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad redirect init parameter value]
expected: FAIL
[Signal removed by setting to null]
expected: FAIL
expected: NOTRUN
[general.any.worker.html]
expected: TIMEOUT
[Aborting rejects with AbortError]
expected: FAIL
@ -230,31 +181,31 @@
expected: FAIL
[Fetch aborted & connection closed when aborted after calling response.arrayBuffer()]
expected: FAIL
expected: TIMEOUT
[Fetch aborted & connection closed when aborted after calling response.blob()]
expected: FAIL
expected: NOTRUN
[Fetch aborted & connection closed when aborted after calling response.formData()]
expected: FAIL
expected: NOTRUN
[Fetch aborted & connection closed when aborted after calling response.json()]
expected: FAIL
expected: NOTRUN
[Fetch aborted & connection closed when aborted after calling response.text()]
expected: FAIL
expected: NOTRUN
[Stream errors once aborted. Underlying connection closed.]
expected: FAIL
expected: NOTRUN
[Stream errors once aborted, after reading. Underlying connection closed.]
expected: FAIL
expected: NOTRUN
[Stream will not error if body is empty. It's closed with an empty queue before it errors.]
expected: FAIL
expected: NOTRUN
[Readable stream synchronously cancels with AbortError if aborted before reading]
expected: FAIL
expected: NOTRUN
[Signal state is cloned]
expected: FAIL
@ -272,55 +223,4 @@
expected: FAIL
[Fetch aborted & connection closed when aborted after calling response.bytes()]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's window is not null]
expected: FAIL
[TypeError from request constructor takes priority - Input URL is not valid]
expected: FAIL
[TypeError from request constructor takes priority - Input URL has credentials]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's mode is navigate]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's referrer is invalid]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's method is invalid]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's method is forbidden]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's mode is no-cors and method is not simple]
expected: FAIL
[TypeError from request constructor takes priority - RequestInit's cache mode is only-if-cached and mode is not same-origin]
expected: FAIL
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode cors]
expected: FAIL
[TypeError from request constructor takes priority - Request with cache mode: only-if-cached and fetch mode no-cors]
expected: FAIL
[TypeError from request constructor takes priority - Bad referrerPolicy init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad mode init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad credentials init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad cache init parameter value]
expected: FAIL
[TypeError from request constructor takes priority - Bad redirect init parameter value]
expected: FAIL
[Signal removed by setting to null]
expected: FAIL
expected: NOTRUN

View file

@ -1,5 +1,5 @@
[keepalive.html]
expected: ERROR
expected: TIMEOUT
[aborting a keepalive fetch should work]
expected: TIMEOUT

View file

@ -17,42 +17,6 @@
[Calling text() on an aborted consumed nonempty request]
expected: FAIL
[Calling arrayBuffer() on an aborted request]
expected: FAIL
[Aborting a request after calling arrayBuffer()]
expected: FAIL
[Calling arrayBuffer() on an aborted consumed empty request]
expected: FAIL
[Calling blob() on an aborted request]
expected: FAIL
[Aborting a request after calling blob()]
expected: FAIL
[Calling blob() on an aborted consumed empty request]
expected: FAIL
[Calling formData() on an aborted consumed nonempty request]
expected: FAIL
[Calling json() on an aborted request]
expected: FAIL
[Aborting a request after calling json()]
expected: FAIL
[Calling text() on an aborted request]
expected: FAIL
[Aborting a request after calling text()]
expected: FAIL
[Calling text() on an aborted consumed empty request]
expected: FAIL
[request.any.serviceworker.html]
expected: ERROR
@ -78,39 +42,3 @@
[Calling text() on an aborted consumed nonempty request]
expected: FAIL
[Calling arrayBuffer() on an aborted request]
expected: FAIL
[Aborting a request after calling arrayBuffer()]
expected: FAIL
[Calling arrayBuffer() on an aborted consumed empty request]
expected: FAIL
[Calling blob() on an aborted request]
expected: FAIL
[Aborting a request after calling blob()]
expected: FAIL
[Calling blob() on an aborted consumed empty request]
expected: FAIL
[Calling formData() on an aborted consumed nonempty request]
expected: FAIL
[Calling json() on an aborted request]
expected: FAIL
[Aborting a request after calling json()]
expected: FAIL
[Calling text() on an aborted request]
expected: FAIL
[Aborting a request after calling text()]
expected: FAIL
[Calling text() on an aborted consumed empty request]
expected: FAIL