gecko-dev/toolkit
Aaron Klotz 004362bf3e Bug 1690384: Propagate error information up through XPCOMGlueLoad and GetBootstrap; r=glandium
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
2021-02-23 23:25:22 +00:00
..
actors Bug 1679174 - Filter out videos with NaN duration. r=mtigley 2021-02-19 01:51:25 +00:00
components Bug 1693861: Record telemetry for popular but unsupported privacy prefs r=chutten 2021-02-23 21:05:46 +00:00
content Bug 1694059 - Rename various nnt prefs. r=spohl,mstange 2021-02-22 20:05:35 +00:00
crashreporter Bug 1403348: Follow-up: Remove crash annotations for AsyncShutdown load failures. r=mccr8 2021-02-23 20:18:13 +00:00
docs Bug 1665854 - fx doc: Various improvements + configuration + fixes in the doc r=firefox-build-system-reviewers,rstewart 2020-09-22 06:26:17 +00:00
library Bug 1670538 - Use an allow-list in RUSTC_BOOTSTRAP for rustc >= 1.50.0. r=firefox-build-system-reviewers,andi,sheehan,mhentges 2021-02-17 21:47:28 +00:00
locales Bug 1669732, add error message for invalid number of copies r=mstriemer,fluent-reviewers 2021-02-18 16:23:54 +00:00
modules Bug 1665942 - Collect userContextId from tab in _collectBaseTabData and stop collecting it in the session history collection; r=nika,geckoview-reviewers,agi 2021-02-23 08:28:57 +00:00
mozapps Bug 1689230 - Simplify gViewController API methods. r=rpl 2021-02-22 22:44:03 +00:00
profile Bug 1693561 - avoid stat'ing profiles.ini twice during startup, r=mossop. 2021-02-22 20:48:14 +00:00
system Bug 1692391 - Rename NS_OBJC_BEGIN/END_TRY_ABORT_BLOCK macros, replacing ABORT with IGNORE. These macros just log the exception and move on, without aborting. r=haik 2021-02-16 22:55:21 +00:00
themes Bug 1692376 - stop showing hover state for menuitems in the new windows 10 menus, r=jaws 2021-02-23 23:20:10 +00:00
xre Bug 1690384: Propagate error information up through XPCOMGlueLoad and GetBootstrap; r=glandium 2021-02-23 23:25:22 +00:00
.eslintrc.js
l10n-registry.manifest
moz.build Bug 1687239 part 3 - Remove the PluginProblem UA Widget and related CSS pseudos. r=emilio 2021-01-25 11:53:57 +00:00
moz.configure Bug 1693689 - Avoid bootstrapping toolchains unless needed. r=firefox-build-system-reviewers,andi,sheehan,mhentges 2021-02-23 03:34:04 +00:00
toolkit.mozbuild Bug 1664898 - move media/mtransport to media/transport. r=ng 2020-09-22 21:43:49 +00:00