cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lyntonjay
New member
Status: New idea

Firefox is my main browser and I'd love to see this supported.

When using getDisplayMedia() for screen sharing, it would be helpful if Firefox exposed a reliable way for web apps to detect whether the user is sharing their entire screen versus just a window or tab.

Currently, the MediaTrackSettings returned from getDisplayMedia() includes a displaySurface property (e.g., "monitor", "window", "browser"), but support and consistency in Firefox is limited. Chrome already supports this reliably, so there's a working reference implementation to compare against.

Improving this in Firefox would let web apps:

  • Warn users if they're sharing their whole screen (privacy risk — accidental exposure of other windows, notifications, etc.)
  • Prompt users to switch to sharing a specific window/tab instead
  • Adjust UI behavior based on sharing scope

Suggested improvement: Ensure track.getSettings().displaySurface reliably returns "monitor" when the full screen is shared, across all supported OSes (Windows, macOS, Linux), and document this behavior clearly for web developers.

2 Comments
Status changed to: New idea
Jon
Community Manager
Community Manager

Thanks for submitting an idea to the Mozilla Connect community! Your idea is now open to votes (aka kudos) and comments.

asher-fx
Employee
Employee

Hi @lyntonjay, thanks very much for the note on screen sharing. We are currently working on implementing tab share and making the entire screen sharing UX more cohesive. Will keep you updated.