#943504 firefox-esr: Firefox Wayland crashes at startup

Package:
firefox-esr
Source:
firefox-esr
Description:
Mozilla Firefox web browser - Extended Support Release (ESR)
Submitter:
Benoît Laniel
Date:
2021-02-15 19:06:02 UTC
Severity:
important
#943504#5
Date:
2019-10-25 14:51:36 UTC
From:
To:
Dear Maintainer,

When setting MOZ_ENABLE_WAYLAND=1, Firefox crashes at startup.

It seems the problem comes from DBUS: org.mozilla.firefox-esr is an
invalid
interface name.
Debian package defines MOZ_APP_REMOTINGNAME as $(call
uc_first,$($(PRODUCT)))
so it ends up being Firefox-esr for this package.

I fixed it using

export MOZ_APP_REMOTINGNAME := $(subst -,_,$(call
uc_first,$($(PRODUCT))))

in debian/rules so the DBUS interface name is valid while being
different from
firefox (non ESR).

Thank you.

#943504#12
Date:
2019-10-28 18:09:07 UTC
From:
To:
Works with --no-remote, but once open can't open URLs from other applications.

MOZ_ENABLE_WAYLAND=1 firefox-esr --no-remote # temp. partial workaround

Related upstream bug to consider (along with Benoît Laniel's fix):
https://bugzilla.mozilla.org/show_bug.cgi?id=1551664

Thanks

#943504#17
Date:
2019-11-25 16:54:39 UTC
From:
To:
Seems to be possible to fix that with the configuration option
--enable-default-toolkit=cairo-gtk3-wayland
like it is done on the newer official builds.
I don't know how this changes the build requirements.

Don't know if you want to do such a change in stable.

Maybe you just want to add a check for GDK_BACKEND.
Then you can add --no-remote in /usr/bin/firefox
That changes behaviour. But only in the case when it would crash.
So I think no one would complain about that.

#943504#22
Date:
2019-11-25 16:59:08 UTC
From:
To:
Seems to be possible to fix that with the configuration option
--enable-default-toolkit=cairo-gtk3-wayland
like it is done on the newer official builds.
I don't know how this changes the build requirements.

Don't know if you want to do such a change in stable.

Maybe you just want to add a check for GDK_BACKEND.
Then you can add --no-remote in /usr/bin/firefox
That changes behaviour. But only in the case when it would crash.
So I think no one would complain about that.
Maybe besides displaying a proper warning.

#943504#27
Date:
2020-03-30 18:39:59 UTC
From:
To:
It appears that the issue was fixed upstream, they now sanitize the name
before it's used in DBUS addresses:

https://hg.mozilla.org/mozilla-central/rev/b58ad41837a6
https://hg.mozilla.org/mozilla-central/rev/4222f7b9c86b

#943504#32
Date:
2021-02-15 18:57:55 UTC
From:
To:
FYI, I'm running firefox-esr 78.7.0esr-1 in wayland, and it does seem to
be fixed. This bug can probably be closed.