Closed Bug 1821400 Opened 2 years ago Closed 5 months ago

[Wayland] firefox does not allow screen sharing on pure wayland session

Categories

(Core :: WebRTC, defect)

Firefox 110
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ivan.c, Unassigned)

References

(Blocks 2 open bugs)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0

Steps to reproduce:

I'm running archlinux with sway, in ~/.config/sway/config I uncomment line
xwayland disable
Then I run sway, go to https://mozilla.github.io/webrtc-landing/gum_test.html
and press on "Screen Capture"

Additional details:
uname -a
Linux ArchCherviakov 6.2.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 03 Mar 2023 15:58:31 +0000 x86_64 GNU/Linux
firefox --version
Mozilla Firefox 110.0.1
sudo pacman -Q | grep -w pipewire
pipewire 1:0.3.66-2
pipewire-audio 1:0.3.66-2
pipewire-pulse 1:0.3.66-2
sudo pacman -Q | grep -w wireplumber
wireplumber 0.4.13-1
sudo pacman -Q | grep -w xdg-desktop-portal
xdg-desktop-portal 1.16.0-1
xdg-desktop-portal-wlr 0.6.0-1

Actual results:

Getting error Object cannot be found

I also made pipewire, wireplumber and xdg-desktop-portal-wlr to show debug logs
Can clearly see that:

  1. If xwayland enabled pipewire start working and show logs output on press buton to screen share in firefox
  2. if xwayland disabled pipewire not output any logs on press button to screen share in firefox
    From this I make conclusion that some check on firefox failed first, but I have no idea how to get any logs from firefox to see actual error.

Expected results:

Screen sharing should work normally

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → WebRTC

The severity field is not set for this bug.
:mjf, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mfroman)
Severity: -- → S3
Flags: needinfo?(mfroman)

Could not reproduce with the following environment:

  • Void Linux
  • Clean Linux user profile
  • Firefox 128.0.2
  • Sway 1.9 (with xwayland disable)
  • Pipewire 1.2.2
  • Wireplumber 0.5.5
  • xdg-desktop-portal 1.18
  • xdg-desktop-portal-wlr 0.7.1

The provided gUM example page shows a video stream of the desktop just fine.

I can confirm from my side that it is no longer an issue.

Status: UNCONFIRMED → RESOLVED
Closed: 5 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.