Re: [mediacapture-screen-share] Allow screen-captured applications to self-declare a capture handle (#159)

> IOW: Tabs communicating across _getDisplayMedia_ is neither safe nor an intuitive user experience. Let tabs capture themselves & collab through e.g. a [BroadcastChannel](https://html.spec.whatwg.org/multipage/web-messaging.html#broadcastchannel).

Consider tabs `A`, `B` and `C`. Using [BroadcastChannel](https://html.spec.whatwg.org/multipage/web-messaging.html#broadcastchannel), they could find each other and communicate with each. But how does that help us?

Assume `A` calls `getDisplayMedia`, and the user chooses to capture `C`.
Does `A` know if it's capturing `B` or `C`?
Not unless visually inspects them for specific pixels. But:
1. This is not an ergonomic solution.
2. This method of identification is open to the risk of impersonation.

These are the two problems I seek to address.

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


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

Received on Tuesday, 13 April 2021 07:50:19 UTC