mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
004362bf3e
We know that some GV installations (particularly but not exlcusively Focus) are failing to load `libxul.so` during early Gecko bootstrapping. Unfortunately a boolean pass/fail result is not giving us sufficient information to be able to properly troubleshoot this problem. This patch adds `mozilla::Result`-based return values to `XPCOMGlueLoad` and `GetBootstrap` in an effort to produce more actionable information about these failures. We include either a `nsresult` or, if the failure is rooted in a dynamic linker failure, appropriate platform-specific error information: * On Unix-based platforms, a `UniqueFreePtr<char>` containing the string from `dlerror(3)`; * On Windows, the Win32 `DWORD` error code from `GetLastError()`. For non-Android platforms, I updated them to handle the new return type, but otherwise did not make any further changes. For Android, we include the error information in the message string that we pass into the Java `Exception` that is subsequently thrown. Differential Revision: https://phabricator.services.mozilla.com/D104263 |
||
---|---|---|
.. | ||
base | ||
build | ||
components | ||
doc | ||
ds | ||
glue | ||
idl-parser | ||
io | ||
libxpt/xptcall | ||
reflect | ||
rust | ||
string | ||
system | ||
tests | ||
threads | ||
windbgdlg | ||
xpidl | ||
moz.build | ||
xpcom-config.h.in |