Bug 253443

Summary: composedPath returns empty array for blur/focus/pagehide/pageshow events on window
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsfiddle.net/kfL4jr3w/

Description Ahmad Saleem 2023-03-06 09:06:22 PST
Hi Team,

While going through StackOverflow, I came across following failing JSFiddle where Safari Technology Preview 164 is returning empty array.

Link - https://jsfiddle.net/kfL4jr3w/

StackOverflow - https://stackoverflow.com/questions/75449870/blur-event-for-composedpath-returns-empty-array-on-window-for-safari

Other browsers - Chrome Canary 113 and Firefox Nightly 112 works fine and return array while Safari returns empty array.

I tried to search for "composedPath" on bugs.webkit.org before raising this to confirm if we have any duplicate but it seems, we don't.

Just raising it so we can fix it.

Thanks!
Comment 1 Ryosuke Niwa 2023-03-08 21:42:10 PST
<rdar://problem/106116803>
Comment 2 Ryosuke Niwa 2023-03-08 21:42:21 PST
Pull request: https://github.com/WebKit/WebKit/pull/11281
Comment 3 EWS 2023-03-09 13:43:20 PST
Committed 261463@main (80b26f0e3d9a): <https://commits.webkit.org/261463@main>

Reviewed commits have been landed. Closing PR #11281 and removing active labels.