Open Bug 1412333 Opened 4 years ago Updated 9 days ago

[Linux] Screen share selection on dual monitors - only "entire screen" option available


(Core :: WebRTC, defect, P3)




Tracking Status
firefox-esr52 --- affected
firefox56 --- affected
firefox57 --- affected
firefox58 --- affected
firefox85 --- affected


(Reporter: aflorinescu, Unassigned)


(Depends on 1 open bug, Blocks 1 open bug)



(1 file)

1. Have dual monitors and open FF.
2. Open ,select Video/Screen and press Start.
3. An identity panel pop-up will be shown to select the screen to share(record).
4. Select Entire screen and "Allow".

[Actual Result:]
3. The options Screen 1 / Screen 2 is missing, being replaced by "Entire screen"
4. The recording will capture and record both screens in a 3840x1080 resolution. 

Please see upstream bug:
Blocks: 1412341
jib, is this something you know of? Maybe somewhere to dupe this one?
Rank: 25
Flags: needinfo?(jib)
Priority: -- → P3
Looks like an upstream issue. Unfortunately, the upstream issue was closed as WontFix for what seems like poor reasons, judging by the subsequent activity. Maybe we should file a new bug?

Dan, any thoughts?
Flags: needinfo?(jib) → needinfo?(dminor)
Someone filed a new bug back in 2016 as which doesn't seem to have been prioritized yet. If we want this fixed, I'm guessing the best bet would be to do the work ourselves and upstream it.

Looking at the code it seems like the relevant functions (ScreenCapturerLinux::GetSourceList and ScreenCapturerLinux::SelectSource) are just not implemented. I'm not sure offhand how much work would be involved in writing these, but I'd be willing to take a look when I have a chance, assuming we're happy with this being a P3.
Flags: needinfo?(dminor)
Assignee: nobody → dminor
I'm not sure if it's related to this bug, but I also can't select a single window to share.
Only the entire desktop is offered in the dropdown.

Browser: Firefox 58
OS: Debian buster (testing)
Architecture: amd64
Desktop: Plasma5/Xorg
Package: firefox-58.0.1-1+b1 from the Debian repos

Until this issue is fixed, here is good script with quick workaround for this problem to share only one screen via Firefox on Linux with multiple monitors setup.

And here is same issue in Chromium thread.

Duplicate of this bug: 1612171

Related patch on Chromium hasn't been reverted since a month ago this time. Let's hope it sticks!

Good news! Just tested out with the latest Chrome Dev release, it works!!!

  • Chrome Dev Versione 83.0.4093.3 (Official Build) dev (64 bit)
  • Ubuntu 18.04.1 freshly installed and updated last friday (2020-03-27)

What do we need to do to have it here? Just pull from WebRTC upstream?

Related patch on Chromium hasn't been reverted since a month ago this time. Let's hope it sticks!

Sticks to Firefox code? =)

Does same code from Chrome can be reused in Firefox, or it use different implementation?

I was talking about "sticks to Chromium code", since the patch got reverted multiple times due to downstream tests breakage ;)

I don't know Firefox's codebase, if it uses WebRTC it should just be able to use it as is pulling from upstream.

@jib? @dminor? Can you weight in here?

Flags: needinfo?(dminor)

Upstream commit is: We should be able to cherry pick it and apply to our local copy. I'll have a look.

Flags: needinfo?(dminor)

Unfortunately, taking these changes will have to wait until we do our next import of libwebrtc.

Closed: 1 year ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1607238
Duplicate of this bug: 1635366

Why this issue is closed with marking as duplicate of other issue, that closed too? This is not fixed, and must stay open in current issue, because it is earlier and have more detailed info!

Flags: needinfo?(dminor)

And is there any estimate date exists when next import of libwebrtc into Mozilla repo planned?

The update is being worked on in Bug 1654112. This should probably depend on that bug rather than being a duplicate of that bug, just in case the update doesn't actually fix things.

Assignee: dminor → nobody
Depends on: 1654112
Flags: needinfo?(dminor)
Resolution: DUPLICATE → ---
Duplicate of this bug: 1655351

Screen sharing with Jitsi-Web or Citrix-Webclient with Firefox 84.0.2 (64-Bit) on Linux (ubuntu 20.04, manjaro) with multiple desktops - you can't select a specific desktop. Unfortunately, you can only select the entire screen. This is problematic, because the displayed screen is no longer readable by the meeting participants. Unfortunately I have to use other browsers like chromium, Edge ...

A small description as a picture PDF can be found here:

I work for a company doing reports, due to the pandemic we need to project all the presentations remotely using services like Google Meet, but I use 2 screens, when I need to present a report together with the draft files, navigation, consoles, etc. I am obliged to project both screens instead of just one and people who have a notebook see the image too long, the same happens with mobile devices, I can't have my drafts on one screen and present on the second.

Not being able to present on a single screen is a problem.

Facing this same problem, the only workaround is to share a specific window - but that is not helpful in all cases. I am now falling back to Chromium only for calls where i have to present my screen.

in 2020/2021 this turns out to be a really useful feature enhancement!

+1 for implementing this feature!

Sharing window has bad effect: no dropdowns and such elements are visible to participants.

+1 for implementing this feature!

Even in
Firefox Developer Edition 88.0b1
is still unavailable.
I need to stick with Chrome for this.

Also a preview of the available screen/windows (like Chrome does) would be preferred instead of a flat textual list.



Attached image Your Entire Screen

"Your Entire Screen" in Chromium has thumbnails of each screen so that the correct screen can be selected.

Is this feature planned to be implemented in Firefox? If so, is there an ETA?

Thank you

You need to log in before you can comment on or make changes to this bug.