Bug 2230588

Summary: firefox-x11 crashes on start in Wayland session
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: erack, gecko-bugs-nobody, jhorak, klaas, rstrode, stransky
Target Milestone: ---Keywords: Desktop, Documentation, Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Stadelmann 2023-08-09 16:50:16 UTC
When trying to start firefox-x11 in a GNOME/Wayland session, it immediately aborts.

Reproducible: Always

Steps to Reproduce:
1. Log in to a GNOME/Wayland session
2. Open a terminal
3. execute `$ firefox-x11 --safe-mode --Profile-Manager --new-instance`
Actual Results:  
Firefox does not start. Instead, I get this output:
```
Authorization required, but no authorization protocol specified
Error: cannot open display: :0
```

Expected Results:  
Start firefox. This works fine when using `firefox` instead of `firefox-x11`, e.g. with this command line `$ firefox --safe-mode --Profile-Manager --new-instance`

Note: I have not tried this with previous versions of Firefox, I have tried this only because https://fedoraproject.org/wiki/How_to_debug_Firefox_problems refers to firefox-x11, so I expected it to work.

Installed software versions:
firefox-116.0-2.fc38.x86_64
gtk3-3.24.38-1.fc38.x86_64
gnome-shell-44.3-1.fc38.x86_64
libwayland-client-1.22.0-1.fc38.x86_64
libX11-1.8.6-1.fc38.x86_64
cairo-1.17.8-4.fc38.x86_64
libXcomposite-0.4.5-9.fc38.x86_64
libXdamage-1.1.5-9.fc38.x86_64
libXext-1.3.5-2.fc38.x86_64
libXfixes-6.0.0-5.fc38.x86_64
libXrandr-1.5.2-10.fc38.x86_64
libXtst-1.2.4-2.fc38.x86_64
libxcb-1.13.1-11.fc38.x86_64

Comment 1 Fedora Release Engineering 2023-08-16 08:14:08 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Martin Stransky 2023-08-17 19:08:19 UTC
Error: cannot open display: :0 means you're missing running X server. Can you try Gnome on X.org?