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

To summarize our discussion of the matter last Thursday:
* @jan-ivar says this was a pre-existing spec mandate that was unintentionally removed, and so does not require consensus to reinstate. As @alvestrand has been here longer than me and knows the history better, I request that he review this PR, in case he remembers some hisotrical context which I was not here in time to witness.
* I see two general problems, one atop the other, and I think they persist despite this change:
   i. Corner cases with timing can occur even with the amended wording, as the test for `has focus` can be executed a moment before focus is lost, but before the user-prompt is displayed. This is only a problem because:
   ii. The spec does not prevent getDisplayMedia's user-prompts from stealing focus away from other browser surfaces and/or native apps.
   iii. @jan-ivar mentioned that mandating UX behavior in specs is hard. I think it may be possible to achieve here by not talking of UX in the spec, but rather of activation and focus, which is are well-defined (if poorly understood) concepts.
* I think a fix of (ii) would render (i) a non-issue, and would at the same time obviate the need for this PR. If @jan-ivar thinks it would be better to treat this as a follow-up, I totally understand.

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


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

Received on Monday, 27 September 2021 09:56:14 UTC