Re: [mediacapture-screen-share] Auto-pause capture when user switches captured content (#255)

Note that the 2 other occurrences I've found of doing something more in the setter `onfoo` are: 
- https://w3c.github.io/ServiceWorker/#dom-serviceworkercontainer-onmessage
- https://www.w3.org/TR/webmidi/#widl-MIDIInput-onmidimessage

For the record, I'm not a huge fan of this as developers may read `controller.onswitch = ...` and think they can/should use `controller.addEventListener('switch', ...` as they've been educated to not use `onfoo` anymore and realize eventually their code doesn't work without understand why at first glance.

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/255#issuecomment-1731065156 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 22 September 2023 08:58:24 UTC