Bug 170211 - Click event from click() is not composed
Summary: Click event from click() is not composed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
: 176327 (view as bug list)
Depends on: 188720 188929
Blocks: 148695
  Show dependency treegraph
 
Reported: 2017-03-28 15:59 PDT by Keanu Lee
Modified: 2019-02-06 09:18 PST (History)
11 users (show)

See Also:


Attachments
Fixes the bug (3.11 KB, patch)
2018-08-24 15:38 PDT, Ryosuke Niwa
wenson_hsieh: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keanu Lee 2017-03-28 15:59:51 PDT
When programatically calling `.click()` on an element, the dispatched click event is `composed: false` when it should be true (https://github.com/w3c/webcomponents/issues/513).

Repro:
http://jsbin.com/majaran/edit?html,output
Comment 1 Ryosuke Niwa 2017-03-29 15:09:06 PDT
We don't compose an event dispatched by click() ever. We should fix that.
Comment 2 Radar WebKit Bug Importer 2017-03-30 01:05:01 PDT
<rdar://problem/31341442>
Comment 3 Anne van Kesteren 2017-09-05 01:05:07 PDT
*** Bug 176327 has been marked as a duplicate of this bug. ***
Comment 4 Ryosuke Niwa 2018-08-24 15:38:24 PDT
Created attachment 348049 [details]
Fixes the bug
Comment 5 Ryosuke Niwa 2018-08-24 16:12:30 PDT
Committed r235337: <https://trac.webkit.org/changeset/235337>
Comment 6 Lucas Forschler 2019-02-06 09:18:59 PST
Mass move bugs into the DOM component.