RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1806916 - Firefox fails to show screensharing(pipewire) portal
Summary: Firefox fails to show screensharing(pipewire) portal
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: firefox
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: 8.3
Assignee: Jan Horak
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1739559
TreeView+ depends on / blocked
 
Reported: 2020-02-25 10:07 UTC by Martin Krajnak
Modified: 2020-10-15 04:39 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-25 12:59:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Krajnak 2020-02-25 10:07:23 UTC
Description of problem:
$SUBJ

Version-Release number of selected component (if applicable):
Both:
firefox-68.5.0-2.el8_1.x86_64
also:
flatpak run org.mozilla.Firefox --version  
Mozilla Firefox 73.0.1

xdg-desktop-portal-gtk-1.4.0-1.el8.x86_64
xdg-desktop-portal-1.4.2-1.el8.x86_64
pipewire-0.2.7-1.el8.x86_64

How reproducible:
always

Steps to Reproduce:
1.Have a wayland session running, with screensharing enabled in control-center
2.Open Firefox
3.go to https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/#6618770826397574
4.Click "Share your screen" on the website

Actual results:
Once Firefox pops up the notification, select from menu "Entire screen" and press"Allow" but the screen is not shared

Expected results:
A dialog with screen selection is displayed, once the screen is selected, screen is shown in the browser.

Additional info:
This works for me on 8.2 with:
google-chrome-stable-80.0.3987.106-1.x86_64

I can reproduce this on both Firefox rpm and flatpak, for the first time I noticed that the portal dialog was shown for a split second but it disappeared before I had a chance to interact.

Comment 1 Martin Stransky 2020-02-25 10:15:44 UTC
Jan, can you look at it please?
Thanks.

Comment 3 Jan Grulich 2020-02-25 11:59:11 UTC
It looks it works in general, but it just doesn't work when you cancel the portal dialog. If you cancel it, then every following screensharing request will fail. If you approve it and share the screen successfuly, then the next request will also work just fine.

Comment 4 Jan Grulich 2020-02-25 12:03:41 UTC
Restarting Firefox makes it work again, at least until you cancel the portal dialog. This is also happening in Fedora so it's not a RHEL specific issue.

Comment 5 Jan Grulich 2020-05-18 11:50:33 UTC
This issue is still reproducible on RHEL 8.2.

Comment 7 Martin Krajnak 2020-07-20 15:53:45 UTC
Still broken in 8.3, at some point I a gnome dialog to choose a window to be shared is shown to me but the window is now shown at all.
The workaround mentioned by Honza in Comment 4 is working for me.

firefox-68.9.0-1.el8.x86_64
pipewire-0.3.6-1.el8.x86_64
xdg-desktop-portal-1.6.0-2.el8.x86_64
gnome-remote-desktop-0.1.8-3.el8.x86_64

On the contrary, the screen sharing is working for me with firefox from flathub:
Firefox                   org.mozilla.firefox                     78.0.2      stable    system

+ google-chrome-stable-84.0.4147.89-1.x86_64

Comment 8 Martin Krajnak 2020-07-20 15:57:45 UTC
Ignore my previous comment, I forgot to update the whole comment after retesting again:

Still broken in 8.3, at some point a gnome dialog to choose a window to be shared is shown to me but the window is now shown at all.
The workaround mentioned by Honza in Comment 4 IS NOT WORKING for me, it works only to force the gnome dialog with windows to share to show.

firefox-68.9.0-1.el8.x86_64
pipewire-0.3.6-1.el8.x86_64
xdg-desktop-portal-1.6.0-2.el8.x86_64
gnome-remote-desktop-0.1.8-3.el8.x86_64

On the contrary, the screen sharing IS WORKING for me with firefox from flathub:
Firefox                   org.mozilla.firefox                     78.0.2      stable    system

+ google-chrome-stable-84.0.4147.89-1.x86_64

Comment 9 Jan Grulich 2020-07-20 16:15:23 UTC
I think I know where is the problem. 

Looking at the build log of Firefox, I see it applies a patch for older PipeWire, not for PipeWire 0.3 (for which there is firefox-pipewire-03.patch). I guess there is something wrong in the spec file.

Spec file: https://src.osci.redhat.com/rpms/firefox/blob/rhel-8.3.0/f/firefox.spec#_545

Comment 10 Martin Krajnak 2020-07-21 08:42:47 UTC
The issue might be as well connected to the bz1859087 as the firefox-78.0.1-1.el8_3.x86_64 is built against libpipewire-0.2.so.1()(64bit)

Comment 11 Martin Krajnak 2020-07-23 11:59:16 UTC
I tested this currently on Fedora, I believe, if we rebuild the FF againt the newest pipewire the issue be solved, so let's wait for the rebuild.

Comment 15 Martin Krajnak 2020-08-25 12:57:53 UTC
Latest ESR fixed this firefox-78.2.0-2.el8.x86_64


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