Closed Bug 1677271 Opened 8 months ago Closed 8 months ago

[wpt-sync] Sync PR 26537 - Fix AbortSignal in addEventListener for capture

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26537 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26537
Details from upstream follow.

b'Joey Arhar <jarhar@chromium.org>' wrote:

Fix AbortSignal in addEventListener for capture

AbortSignal doesn't remove the event listener if it was registered with
capture: true in addEventListener.
This patch fixes it by plumbing through the options to
removeEventListener.

Fixed: 1149047
Change-Id: Iccafee46277880088634828fc9c9310388044a1d

Reviewed-on: https://chromium-review.googlesource.com/2538368
WPT-Export-Revision: 8fb2ad243998a903673701a3093c7e234396f168

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
FAIL: 2

Chrome

OK : 1
FAIL: 2

Safari

OK : 1
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/dom/abort/addEventListenerAbortController.tentative.html
Tests support for EventController to cancel event listeners in addEventListener.: FAIL (Chrome: FAIL, Safari: FAIL)
Tests support for EventController to cancel capture event listeners in addEventListener.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/17fa43c85e66
[wpt PR 26537] - Fix AbortSignal in addEventListener for capture, a=testonly
https://hg.mozilla.org/integration/autoland/rev/9b8a18d07dc4
[wpt PR 26537] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.