Re: [mediacapture-screen-share] Add configuration to chose whether or not to focus/bring to front the shared window display surface (#138)

Workaround for Chromium 81 (stable) which does gain focus when `prompt()` is used and the screen selected is an application. Firefox doe not gain focus using the same code. 

```
const retainFocus = true;
onclick = async _ => {
 onclick = null;
 const stream = await navigator.mediaDevices.getDisplayMedia({video: true});
 if (retainFocus) {
   prompt('Retain focus', 'Ok');
 };
};
```

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

Received on Thursday, 7 May 2020 06:25:13 UTC