Re: [mediacapture-screen-share] Should top-level transient activation be sufficient for `getDisplayMedia()` on cross-origin iframes with allow="display-capture"? (#167)

@annevk thanks, but did you mean to link to this one as well? https://github.com/whatwg/html/issues/4364

> Would any host Document want to grant a cross-origin iframe "display-capture" permission but restrict its getDisplayMedia() calls to a user gesture specifically on the iframe?

@karlt I can't think of any case like that.

> then checking for transient activation on the top-level Window instead of on the relevant global object is an option to allow this use case.

I think that'd work in our case since *getDisplayMedia* is the lone feature [enabled by](https://www.w3.org/TR/screen-capture/#feature-policy-integration) `"display-capture"`.

Though now I'm curious, can an iframe doc get transient activation without its top-level doc also getting it?

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


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

Received on Thursday, 15 April 2021 22:44:21 UTC