firefox: screensharing broken
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 26.2k
- Forks
- 20.1k
- PR merge metrics
- PR metrics pending
Description
Nixpkgs version
- Unstable (25.11)
Describe the bug
When trying to share my screen or select windows I can only select "entire screen", which in turn is just a black screen.
dbus-monitor only shows firefox trying to inhibit org.freedesktop.ScreenSaver, but nothing related to ScreenCast (very little lines in general)
google-chrome on the other hand properly starts everything, and its calls for stuff like org.freedesktop.impl.portal.desktop.cosmic to get path=/org/freedesktop/portal/desktop; interface=org.freedesktop.impl.portal.ScreenCast; member=SelectSources; everything works properly
Steps to reproduce
- start firefox
- go to https://mozilla.github.io/webrtc-landing/gum_test.html
- observe
Expected behaviour
same as in chrome; screen gets shared
Screenshots
Firefox:
Chrome:
Relevant log output
Additional context
I am using the COSMIC DE, I have tested screensharing in google-chrome and zoom-us , both working as expected.
this bug also happens in firefox-esr and firefox-beta
the only other machine i tested with is running arch linux + kde, there screensharing works
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.12.55, NixOS, 25.11 (Xantusia), 25.11.20251028.08dacfc - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.2 - nixpkgs:
/nix/store/p6gvrb36n5dh0cdg6d77rkpapy5kc0gq-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure in Firefox using the linked WebRTC getUserMedia test, then observe D-Bus traffic with dbus-monitor while comparing Firefox with google-chrome on COSMIC. The issue is done when Firefox can select a window or screen and share it successfully, including in firefox-esr and firefox-beta where applicable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100