gecko-dev/browser
Aaron Klotz c084ff85e4 Bug 1508468: Convert launcher process to use mozilla::Result for error propagation; r=mhowell
This patch does a couple of things:

* I added a new class, |WindowsError| to WinHeaderOnlyUtils. The idea here is
  to encapsulate as much of the Windows error gamut as possible into one class.
  Since Win32 errors and NTSTATUS codes may both be encoded as HRESULTs, I
  used the latter type to store the error. It also contains functions for
  converting between the various error code formats, as well as stringification
  via FormatMessage.

* I added |LauncherError| which also includes file and line number information,
  which I believe will be important for launcher process failure diagnostics.
  (Instantiation of LauncherErrors obviously must be done via macros to capture
  __FILE__ and __LINE__).

* I then converted all of the launcher process code (and its few depenencies) to
  utilize this new functionality via the new |LauncherResult| type.

* If we detect an error in one of the top-level launcher process functions, we
  pass it to |HandleLauncherError| for processing. This function currently just
  throws up a |MessageBox| like the previous code did, with the intention of
  enhancing that further in the future.

Differential Revision: https://phabricator.services.mozilla.com/D12365

--HG--
extra : moz-landing-system : lando
2018-11-20 23:49:36 +00:00
..
actors Bug 1500020 - Update cert error page copy based on UX suggestions. r=nhnt11 2018-10-19 14:50:59 +00:00
app Bug 1508468: Convert launcher process to use mozilla::Result for error propagation; r=mhowell 2018-11-20 23:49:36 +00:00
base Bug 1507353 - Convert the accesses to security.insecure_connection_*.* prefs into lazy getters r=johannh 2018-11-20 20:04:14 +00:00
branding Bug 1491672 - Migrate About Dialog to use Fluent for localization r=flod,zbraniecki,jaws 2018-11-05 16:13:12 +00:00
components Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug 2018-11-20 16:59:56 +00:00
config Bug 1504489 - Make fuzzing ccov mozconfig import the code coverage opt mozconfig. r=decoder 2018-11-15 00:40:19 +01:00
docs Bug 1502385 - Filter matches and providers in the Quantum Bar manager. r=adw 2018-11-05 21:54:09 +00:00
extensions Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug 2018-11-20 16:59:56 +00:00
fonts
installer Bug 1508637 - Update comments in removed-files.in. r=mhowell 2018-11-20 16:04:42 +00:00
locales Bug 1507301 - Migrate about:sessionrestore and about:welcomeback to use Fluent for localization r=Gijs,flod,zbraniecki 2018-11-19 22:01:58 +00:00
modules Bug 1468517 - Make toolbar_bottom_separator color apply to findbar top border. r=dao 2018-11-18 18:16:52 +00:00
themes Bug 1507875 - Remove the customizable ui toolbarpaletteitem binding;r=Gijs 2018-11-20 17:01:48 +00:00
tools/mozscreenshots Bug 1501286 - Part 2: Remove support for tracking protection UI from Control Centre r=johannh 2018-10-25 16:52:19 +00:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander 2018-11-16 01:15:35 +00:00
defs.mk
LICENSE
Makefile.in
moz.build Bug 1465251 - use PrioEncoder to encode Telemetry values for pilot project r=kmag 2018-09-09 00:23:52 +00:00
moz.configure Bug 1493315: Build config for dedicated profiles and downgrade protection. r=ted 2018-09-21 23:32:55 +00:00