This PR is based off of #18432.
Changes made to make UI tests pass:
fetch()polyfill library: https://github.com/github/fetch. See the AbortController spec: https://developer.mozilla.org/en-US/docs/Web/API/AbortController
UI tests should be passing for this one
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers