gecko-dev/browser
Aaron Klotz 84c01f8930 Bug 1400344: Rename mscom::MainThreadRuntime to mscom::ProcessRuntime and make it aware of Win32k lockdown and of multiple instantiations; r=Jamie
This patch takes care of a bunch of issues and does some cleanup:

* We rename mscom::MainThreadRuntime to mscom::ProcessRuntime, as the latter
  is a more accurate name going forward.
* We make ProcessRuntime aware of the Win32k Lockdown process mitigation
  policy. When Win32k is disabled, we perform process-wide COM initialization
  in the multi-threaded apartment (since we cannot create an STA window).
* We refactor the mscom apartment region stuff to enable the Win32k lockdown
  pieces in ProcessRuntime.
* We move some Gecko-specific stuff into MOZILLA_INTERNAL_API guards so that
  ProcessRuntime is usable outside of xul.dll (I will be needing it for the
  launcher process).
* Another thing that might happen with the launcher process is that, under
  error conditions in the launcher, we create a ProcessRuntime object on a
  background thread for the purposes of telemetry logging, but we also allow
  the main thread to proceed to start as the browser. This could result in a
  scenario where the main thread, as the browser process, is attempting to
  instantiate its ProcessRuntime and ends up racing with the launcher process's
  telemetry thread which has its own ProcessRuntime. To account for this
  situation, we add mutual exclusion to the process-wide initialization code.
  We host this part inside mozglue since that state is shared between both
  firefox.exe and xul.dll.
* We clean up ProcessRuntime::InitializeSecurity by using Vector to set up
  the EXPLICIT_ACCESS entries.
* We remove mscom::MainThreadClientInfo and replace it with a direct call to
  CoGetCallerTID
* We revise all references to this class to use the new name.

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

--HG--
rename : ipc/mscom/COMApartmentRegion.h => ipc/mscom/ApartmentRegion.h
rename : ipc/mscom/MainThreadRuntime.cpp => ipc/mscom/ProcessRuntime.cpp
rename : ipc/mscom/MainThreadRuntime.h => ipc/mscom/ProcessRuntime.h
extra : moz-landing-system : lando
2019-02-14 18:56:20 +00:00
..
actors Bug 1522400: Set proper context menu items on about:devtools-toolbox page. r=jdescottes,mconley 2019-02-13 01:50:20 +00:00
app Bug 1400344: Rename mscom::MainThreadRuntime to mscom::ProcessRuntime and make it aware of Win32k lockdown and of multiple instantiations; r=Jamie 2019-02-14 18:56:20 +00:00
base Backed out 8 changesets (bug 1522637) for browser_all_files_referenced.js failures CLOSED TREE 2019-02-14 19:20:58 +02:00
branding Bug 1518632: Show the first-run experience for users that get pushed to a new profile. r=Gijs, r=flod, r=stomlinson 2019-01-30 11:31:13 -08:00
components Bug 1522637 - Part 7: Perform process switches separtely from on-examine-response, r=valentin 2019-02-14 15:37:06 +00:00
config Bug 1527011 - Support win64-aarch64 artifact builds; r=nalexander 2019-02-12 18:03:38 -07:00
docs Bug 1524714 - @ by itself should show all the engine @aliases. r=mak,dao 2019-02-08 08:53:07 +00:00
extensions Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE 2019-02-14 11:50:23 +02:00
fonts
installer Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE 2019-02-14 11:50:23 +02:00
locales Bug 1524264 - move noproxy textbox lower to hint as a global effect r=ewright,flod 2019-02-13 10:46:19 +00:00
modules Backed out 3 changesets (bug 1523272) for ES Linut failure CLOSED TREE 2019-02-14 18:29:54 +02:00
themes Backed out 79 changesets (bug 1524687, bug 1524688) for crashes on mozilla::dom::ScreenOrientation::ScreenOrientation(nsPIDOMWindowInner *,nsScreen *). CLOSED TREE 2019-02-14 11:50:23 +02:00
tools/mozscreenshots Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
.eslintrc.js
LICENSE
Makefile.in
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
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