Bug 2070556 - Screensharing broken on Wayland
Summary: Screensharing broken on Wayland
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-31 12:38 UTC by Vít Ondruch
Modified: 2023-11-24 07:54 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-24 07:54:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2022-03-31 12:38:14 UTC
Description of problem:
Screensharing does not work on wayland


Version-Release number of selected component (if applicable):
$ rpm -q firefox
firefox-98.0-3.fc37.x86_64

$ rpm -q wireplumber
wireplumber-0.4.8-2.fc37.x86_64

$ rpm -q xdg-desktop-portal* -a
xdg-desktop-portal-gtk-1.12.0-2.fc36.x86_64
xdg-desktop-portal-1.12.2-2.fc37.x86_64


How reproducible:


Steps to Reproduce:
1. https://webrtc.github.io/samples/src/content/getusermedia/getdisplaymedia/
2. Select "whole screen"
3. In FF popup "use system settings"
4. Nothing happens

Actual results:
Screensharing does not work


Expected results:
Screensharing works


Additional info:
This might be somehow related to [1], but it is not clear what needs to be done, if anything. I'd expect it to work out of the box without me changing any settings.



[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1678269

Comment 1 Martin Stransky 2022-04-04 08:00:23 UTC
I tested F36 and works as expected. Will test rawhide. If https://bugzilla.mozilla.org/show_bug.cgi?id=1678269 is related then new profile should fix that.

Comment 2 Martin Stransky 2022-04-04 08:16:54 UTC
Hm, I'm unable to run rawhide in Wayland mode due to gnome-shell crashes. Can you try clean profile?

Comment 3 Vít Ondruch 2022-04-04 13:34:35 UTC
(In reply to Martin Stransky from comment #2)
> Can you try clean profile?

It does not work with clean profile either.

Comment 4 Vít Ondruch 2022-04-04 14:31:10 UTC
I wonder if xdg-desktop-portal-gnome package is required or not ...

Comment 5 Vít Ondruch 2022-04-04 15:42:04 UTC
So the xdg-desktop-portal-gnome makes the difference. Maybe FF could recommend this dependency, dunno. I have reported this against fedora workstation WG to try to address this:

https://pagure.io/fedora-workstation/issue/298

Comment 6 Martin Stransky 2022-04-05 08:12:00 UTC
(In reply to Vít Ondruch from comment #5)
> So the xdg-desktop-portal-gnome makes the difference. Maybe FF could
> recommend this dependency, dunno. I have reported this against fedora
> workstation WG to try to address this:
> 
> https://pagure.io/fedora-workstation/issue/298

Firefox is used on KDE too so xdg-desktop-portal-gnome is not an option. xdg-desktop-portal-gtk should be enough as we use gtk. xdg-desktop-portal-gnome is a Gnome component so it should be installed as a part of Gnome environment.

Comment 7 Vít Ondruch 2022-04-05 10:37:57 UTC
(In reply to Martin Stransky from comment #6)
> (In reply to Vít Ondruch from comment #5)
> > So the xdg-desktop-portal-gnome makes the difference. Maybe FF could
> > recommend this dependency, dunno. I have reported this against fedora
> > workstation WG to try to address this:
> > 
> > https://pagure.io/fedora-workstation/issue/298
> 
> Firefox is used on KDE too so xdg-desktop-portal-gnome is not an option.

Yes, right. That is why I believe all the desktop specific components should provide some common virtual provide. And this is why I have not explicitly requested any require yet and went to report this against Fedora Workstation WG.

> xdg-desktop-portal-gtk should be enough as we use gtk.
> xdg-desktop-portal-gnome is a Gnome component so it should be installed as a
> part of Gnome environment.

BTW is these something from FF POV, what could help to detect the missing desktop portal component? Can FF detect and report this somehow? Sorry for asking, this might be OT.

Comment 8 Martin Stransky 2022-04-05 10:43:42 UTC
Firefox uses DBus interface, we may throw an error when it's missing so we can't connect to portal.

Comment 9 Vít Ondruch 2022-04-05 10:59:19 UTC
(In reply to Martin Stransky from comment #8)
> Firefox uses DBus interface, we may throw an error when it's missing so we
> can't connect to portal.

That would be nice. Even better if this was somehow reported in UI.

Comment 10 Ben Cotton 2022-08-09 13:14:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.

Comment 11 Aoife Moloney 2023-11-23 00:10:45 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 12 Vít Ondruch 2023-11-23 08:57:27 UTC
(In reply to Martin Stransky from comment #8)
> Firefox uses DBus interface, we may throw an error when it's missing so we
> can't connect to portal.

Was there some improvement? Is this tracked somewhere?

Other then that, the underlying issues were likely resolved elsewhere, so I'm fine with autoclosing ...

Comment 13 Martin Stransky 2023-11-24 07:54:33 UTC
Okay, let's close this one then.
Thanks.


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