Re: [mediacapture-screen-share] Conditional Focus (When Display-Capture Starts) (#190)

`getDisplayMedia()` at some point queues a task to resolve the promise. That's where you'd execute the callback. This would end up happening before the `getDisplayMedia().then()` callback, which would happen during the microtask portion of that task. As it's all in the same task asked for by a single caller I don't think it's a footgun, but I might be misunderstanding your point.

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


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

Received on Friday, 1 October 2021 12:02:03 UTC