Skip to content

Concern: Availability of getDisplayMedia() in file:// Secure Contexts #320

@tmpmachine

Description

@tmpmachine

If this is not the right spec for the issue, please point me to the right spec. Thanks!


API Affected: navigator.mediaDevices.getDisplayMedia()

Allowing screen capture initiated from a local file:// page presents a unique risk compared to capture initiated from a remote network origin (e.g., HTTPS).

file:// URLs have the capability to:

  • Embed content directly from the local file system.
  • Embed the directory browser

This means if the user open a malicious HTML app directly in the browser (file:// URL) and use the API, the app can pixel steal the content of local files.

Given the unique capabilities and potential risk of local file access, a discussion is needed against screen capture initiated from local files, i.e. whether or not the current specification should continue to permit getDisplayMedia() calls from file:// contexts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions