Re: [mediacapture-screen-share] Suggest User Agents treat a captured tab as visible (#307)

> I would tend to prefer should here since this is mostly about quality of experience ...

The OP says it's also about ensuring that the surface control API is not leaking that a tab is being captured.

For instance, the following output from https://jsfiddle.net/jib1/519jp0ht/show would reveal the tab is likely being captured:
```
document.visibilityState = "visible" window.devicePixelRatio = 2
document.visibilityState = "hidden" window.devicePixelRatio = 2
document.visibilityState = "hidden" window.devicePixelRatio = 2
document.visibilityState = "hidden" window.devicePixelRatio = 2.200000047683716
document.visibilityState = "hidden" window.devicePixelRatio = 2.200000047683716
```

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


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

Received on Tuesday, 21 January 2025 21:40:20 UTC