dispatchEvent(), addEventListener() and removeEventListener() contain some code related with EME and fullscreen support that is not specific to WIRELESS_PLAYBACK_TARGET.
Created attachment 432283 [details] Patch
Committed r279289 (239168@main): <https://commits.webkit.org/239168@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 432283 [details].
<rdar://problem/79786589>