Bug 1677626 [wpt PR 26545] - Fix aborted AbortSignal in addEventListener, a=testonly
commitaf4ffc1b360ae3e9bfab38dae4517457c620fc0a
authorJoey Arhar <jarhar@chromium.org>
Tue, 17 Nov 2020 10:05:02 +0000 (17 10:05 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 18 Nov 2020 08:42:59 +0000 (18 08:42 +0000)
tree798fcc8336677aa56857074111086bd8033e449d
parent2d1ddfc48582f92831df5a1950ad3537836cee63
Bug 1677626 [wpt PR 26545] - Fix aborted AbortSignal in addEventListener, a=testonly

Automatic update from web-platform-tests
Fix aborted AbortSignal in addEventListener

If you call AbortSignal.abort() and then pass that AbortSignal to
addEventListener, it shouldn't add the event listener. It currently adds
the event listener and still runs the handler, and this patch stops it
from adding the listener in that case.

Fixed: 1149553
Change-Id: I7aee86d3fb2901947054c66d50e2aef1bb9467bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2541503
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828071}

--

wpt-commits: a719147427a6934d24fe013c1251f7294e4afced
wpt-pr: 26545
testing/web-platform/tests/dom/abort/addEventListenerAbortController.tentative.html