Re: [mediacapture-screen-share] Spec should be more explicit about exposure of deviceId (#306)

> If getDisplayMedia is called twice and user picks the same surface twice, the web page can easily notice it with deviceId.

As you point out later in your message, that too would require amending the spec. I'm open to the idea. Some challenges are:
* It's non-trivial to specify the "same surface". When is a tab still the same tab? Does navigation change things? Does it matter if it's cross-origin or not? Does reopening a closed tab change the surface?
* You suggest that this `deviceId` should stay the same across capture-sessions (invocations of gDM). But is that only within a given "session" of the capturing application? What if it's reloaded? Unloaded (closed tab) then loaded again 2 hours later? Does it matter if BFCache is used or not? What happens if the user agent is restarted? What if the machine is restarted?

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


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

Received on Friday, 11 October 2024 07:53:37 UTC