fune/toolkit/components/remote
Michael Hofmann 99540873a3 Bug 1684365 - Add a null pointer check so that Firefox won't crash when it can't initialize mRemoteServer r=stransky
Firefox 84.0.1 crashes under Gentoo Linux if it is started in
Wayland mode and if it was compiled WITH Wayland support and
WITHOUT dbus support.

I traced down the problem to line 172 of
toolkit/components/remote/nsRemoteService.cpp:

   nsresult rv = mRemoteServer->Startup(mProgram.get(), mProfile.get());

mRemoteServer is NULL and Firefox crashes.

This patch adds a NULL pointer check before that line.

See:
- Mozilla's Bugzilla, bug 1684365
- https://bugs.gentoo.org/762035
- https://forums.gentoo.org/viewtopic-t-1126235.html

Differential Revision: https://phabricator.services.mozilla.com/D101536
2021-01-25 09:29:42 +00:00
..
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
nsDBusRemoteClient.cpp
nsDBusRemoteClient.h
nsDBusRemoteServer.cpp Bug 1672173 [Linux] Fix malformed DBUS introspection, r=jhorak 2020-12-10 16:10:08 +00:00
nsDBusRemoteServer.h
nsGTKRemoteServer.cpp
nsGTKRemoteServer.h
nsMacRemoteClient.h
nsMacRemoteClient.mm
nsMacRemoteServer.h
nsMacRemoteServer.mm
nsRemoteClient.h
nsRemoteServer.h
nsRemoteService.cpp Bug 1684365 - Add a null pointer check so that Firefox won't crash when it can't initialize mRemoteServer r=stransky 2021-01-25 09:29:42 +00:00
nsRemoteService.h
nsUnixRemoteServer.cpp
nsUnixRemoteServer.h
nsWinRemoteClient.cpp Bug 1684110 - Stop using some 'A'-functions in toolkit/components/remote/. r=tkikuchi 2020-12-27 08:40:36 +00:00
nsWinRemoteClient.h
nsWinRemoteServer.cpp Bug 1684110 - Stop using some 'A'-functions in toolkit/components/remote/. r=tkikuchi 2020-12-27 08:40:36 +00:00
nsWinRemoteServer.h
nsXRemoteClient.cpp
nsXRemoteClient.h
nsXRemoteServer.cpp
nsXRemoteServer.h
RemoteUtils.cpp
RemoteUtils.h Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
WinRemoteMessage.cpp
WinRemoteMessage.h