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

> ```
> const nativeGDM =  window.navigator.mediaDevices.getDisplayMedia;
> window.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) {
>   const promise = nativeGDM.apply(this, arguments);
>   promise.then(stream => {
>     stream.newFeatureX = 3;
>   });
>   return promise;
> }
> ```

@youennf Sorry, but each `then` on the same promise introduces a microtask checkpoint.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928099217 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 17:34:15 UTC