Skip to content
Snippets Groups Projects
Commit 2f9415bb authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[BUGFIX] Allow custom AbortSignal to be passed to AjaxRequest methods

AjaxRequest uses an own AbortController instance in order to provide
the abort() method. It therefore passes the corresponding AbortSignal
instance as a forced option to fetch(), and overwrites any custom
signal that is passed as request options.

In order to support custom AbortSignal's passed as fetch option,
the abort event of the custom AbortSignal is now forwarded to the
internal AbortController instance.

Resolves: #102286
Releases: main, 12.4
Change-Id: I8011c1794acc22a6d9d2e874a02c1a8c97e532dc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81613


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent f5f5275c
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment