emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stopped working with Firefox since version 110.0

dcompoze opened this issue · comments

This might be a Firefox issue but I'm not exactly sure.

Sway version: 1.8.1

Pipewire version: 0.3.66

Wireplumber version: 0.4.13

xdg-desktop-portal version: 1.16.0

xdg-desktop-portal-wlr version: 0.6.0

Firefox peer connection enabled: yes

Last Firefox version that worked: 109.*

First Firefox version that stopped working: 110.0

Using this demo application: https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing

Normally it would show a browser prompt to select the screen to share when clicked.

Now it produces the following error:

selection-1677848492

I tried launching Firefox with default settings/profile but it produced the same error.

It still works correctly on Chromium and older versions of Firefox which would suggest that the portal is configured correctly.

There are no exceptional logs for the xdg-desktop-portal and xdg-desktop-portal-wlr services.

Are you using the flatpak version of firefox? For me the flatpak produced the same error, while the version from the arch repository still worked.

I'm also using firefox from the Arch Linux repo, both v110.0 and v110.0.1 show this error.

If I install v109.0.1 from the pacman cache it works fine.

Are you also using pipewire + wireplumber?

I also tried to check on another computer (with identical configuration) and it produces the same error.

The xdg-desktop-portal and xdg-desktop-portal-wlr are both active (running) with no errors.

I also have the environment export in my sway config:

exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE

I tried deleting the ~/.mozilla directory to reset settings but it didn't help.

If someone could reproduce this then maybe we could figure out if its something to do with Firefox or the portal.

The only recent screen capture related issue I could find on Mozilla's bug tracker is this: https://bugzilla.mozilla.org/show_bug.cgi?id=1799596

But it seems not to be relevant to this issue.

Update: The firefox-developer-edition which is at version 111.0 works fine with screen sharing. I guess I'll just wait for the 111.0 firefox version to be released.

I've got the same issue.

Using Devuan and latest testing packages, including Firefox 110.0.1

Screen capture still works with other programs like Chromium and OBS, but not my Firefox

I'm on the flatpak version of Firefox 110 and it's working here.

commented

@dcompoze Do you have xwayland installed?

#261

FWIW I experienced a similar issue with Firefox 110; with Firefox 111 screen sharing is working again.

@3lpsy I don't have xwayland server installed and also have configured sway to xwayland disable in sway/config.

I don't have a way to test with xwayland enabled right now but I had it disabled for as long as I can remember using Sway and the screen sharing worked before.

It could be that something changed with Firefox version 110 to where it expects xwayland to be enabled, but I haven't checked that yet.

It seems to work correctly since version 111.0 so I'm going to close this issue.