Re: [mediacapture-surface-control] Is it important for capture control to keep captured tab from knowing it is captured? (#42)

> I think we should add restrictions in this spec to ignore zoom and scroll inputs whenever the captured page's document.visibilityState is "hidden".

This is redundant.

We have resolved to mandate that the captured tab should be "visible" anyway. For `setZoomLevel()`, and therefore for `increaseZoomLevel()` and friend, the first step is:
> 1. If [this](https://webidl.spec.whatwg.org/#this) is not [actively capturing](https://w3c.github.io/mediacapture-surface-control/#dfn-actively-capturing), return a promise [rejected](https://webidl.spec.whatwg.org/#reject) with a [DOMException](https://webidl.spec.whatwg.org/#idl-DOMException) object whose [name](https://webidl.spec.whatwg.org/#dom-domexception-name) attribute has the value [InvalidStateError](https://webidl.spec.whatwg.org/#invalidstateerror).

Similarly, the [forward wheel event algorithm](https://w3c.github.io/mediacapture-surface-control/#dfn-forward-wheel-event-algorithm) reads:
> 1. If controller is not [actively capturing](https://w3c.github.io/mediacapture-surface-control/#dfn-actively-capturing), abort these steps.

-- 
GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-surface-control/issues/42#issuecomment-2606764220 using your GitHub account


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

Received on Wednesday, 22 January 2025 09:49:49 UTC