Bug 170211

Summary: Click event from click() is not composed
Product: WebKit Reporter: Keanu Lee <webkit>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: annevk, cdumez, dbates, esprehn+autocc, ews-watchlist, kangil.han, koivisto, rniwa, simon.fraser, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 188720, 188929    
Bug Blocks: 148695    
Attachments:
Description Flags
Fixes the bug wenson_hsieh: review+

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.