Re: [mediacapture-screen-share] Add ability to crop a MediaStream obtained through the share-this-tab API (#158)

@eladalon1983 though we haven't done the engineering in Gecko to enable transfer, at least we have the necessary markings.  If the stream that originates in a canvas is origin-clean, it would be marked as readable to the origin of the page.  If that page decides to transfer the content, we could allow the principal to be changed to that of the destination.  However, if the canvas becomes tainted, then the principal becomes the null origin, which would have to carry across also.

That's separate from having to do things like IPC for transferring between processes and all sorts of fiddly engineering like that.

Capturing DOM elements isn't exactly simple though: what about when cross-origin content is overlaid (using CSS `z-index`)?  If we read from the compositor, we *might* be able to get the un-occluded content.  It is tricky though.

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


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

Received on Friday, 22 January 2021 04:03:35 UTC