mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-21 11:40:34 -10:00
In this code there are conditions where we can't proceed, but simply `MOZ_CRASH`ing isn't ideal, because the crash reporter doesn't work here, and on non-debug builds the crash string isn't printed to the terminal, so we get bug reports where we know that something crashed somewhere but not much else. Because we already have the `SANDBOX_LOG` macros (which are intended to be async signal safe), this patch uses them to add some more logging. This patch also makes sure that `WriteStringToFile` always sets errno to something when returning failure, because that matters for some of this new logging. Differential Revision: https://phabricator.services.mozilla.com/D204574