Re: [mediacapture-screen-share] Concern: Availability of getDisplayMedia() in file:// Secure Contexts (#320)

There's an element capture API (RestrictionTarget, https://developer.chrome.com/docs/web-platform/element-capture) that allows recording part of a page. It requires a secure context and can be used on null origins (file://). This means an attacker could pixel-steal file:// iframes even without the element being visible.

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


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

Received on Friday, 25 July 2025 03:50:00 UTC