зеркало из https://github.com/mozilla/gecko-dev.git
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 |
||
---|---|---|
.. | ||
actors | ||
components | ||
content | ||
crashreporter | ||
docs | ||
library | ||
locales | ||
modules | ||
mozapps | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc.js | ||
l10n-registry.manifest | ||
moz.build | ||
moz.configure | ||
toolkit.mozbuild |