Bug 1681588 [wpt PR 26825] - Fire capture before bubble handlers at target, a=testonly
commitd99ef094ba4e70a91ad1e30e83a7e090eaaa0248
authorJoey Arhar <jarhar@chromium.org>
Fri, 18 Dec 2020 10:40:38 +0000 (18 10:40 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 21 Dec 2020 15:00:04 +0000 (21 15:00 +0000)
tree393a271933cebaa398feb5c5b23d63f339e78914
parent354049505c46e2e7fc4435d122b8d69d300030de
Bug 1681588 [wpt PR 26825] - Fire capture before bubble handlers at target, a=testonly

Automatic update from web-platform-tests
Fire capture before bubble handlers at target

Before this patch, event handlers registered at the target of the event,
which get fired during the AT_TARGET event phase, get fired in order of
when they are registered without any regard for which handlers are
capture and which ones are bubble.

This patch fires all capture handlers before bubble handlers during the
AT_TARGET event phase.

WebKit implemented the same behavior here:
https://trac.webkit.org/changeset/236002/webkit

I2S: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/blink-dev/30jv38uD_84

Fixed: 1052152
Change-Id: I87752225dbcef7d07fccf9a6999711bdf5fbad20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2581814
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#838108}

--

wpt-commits: eafd352c17be21940dd11880a76c930e234e710d
wpt-pr: 26825
testing/web-platform/tests/dom/events/Event-stopPropagation-cancel-bubbling.html [new file with mode: 0644]