Re: [mediacapture-screen-share] Wait for fully-active and has focus. (#192)

> Not quite. There is no visibility requirement

I know visibility is not mentioned by the PR. I was saying that there are two scenarios in which the PR's effect can be considered - tab invisible or visible.
1. Tab invisible: if the user has tabbed away (ctrl+tab), then the prompt would appear *immediately when the user tabs back*. The user has no idea if the prompt was there all along, and therefore the PR "produces no observable difference in behavior."
2. Tab visible-but-unfocused (cited example - side-by-side windows): The PR produces behavior which could even be seen as surprising for the user. Or not. Discussion invited.

> [crbug 920733](https://bugs.chromium.org/p/chromium/issues/detail?id=920733)

Thanks for bringing this one to my attention; I see what appears to be a lingering implementation issue there - that an inactive-but-visible Chrome tab can steal focus from another window using getDisplayMedia(). Which leads me to my point -

> nothing prevents a browser from throwing up a prompt on behalf of a background tab

If the prompt is non-intrusive - does not steal focus and does not peek out of the borders of the window - then it is a non-issue.
And I think the prompt *should* be non-intrusive. I think we'd be right to specify that.
Note that a bugged implementation that can steal focus is still susceptible to timing edge cases, like when - gDM check for is-focused executes, user alt+tabs away, application steals focus back.

> this issue seems rather moot

If that is the case, I'd prefer a shorter spec over a long one.
Requiring (i) transient activation and (ii) a non-intrusive prompt seem to me like a preferable way to go. Wdyt?

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


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

Received on Friday, 17 September 2021 13:44:11 UTC