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}
Showing
Please register or sign in to comment