gecko-dev/browser/app
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
..
macbuild/Contents Bug 1085391 - Support Yosemite Handoff 'web browsing' activity type. r=spohl 2018-10-20 04:47:38 +00:00
no-pie Bug 1525760 - Add a clang-based base toolchains task. r=froydnj 2019-02-09 09:41:03 +00:00
profile Bug 1522637 - Part 6: Enable httpResponseProcessSelection by default, r=qdot 2019-02-14 15:14:05 +00:00
winlauncher 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
Makefile.in Bug 1079662 - Always enable PIE. r=froydnj 2018-09-08 07:41:21 +09:00
blocklist.xml No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2019-02-11 12:28:57 +00:00
firefox.exe.manifest Bug 1496179 - Make mozglue.dll a private SxS assembly. r=aklotz,froydnj 2018-10-10 22:57:53 +09:00
macversion.py bug 1463425 - Fix flake8 in browser/ r=ahal,gps 2018-05-21 23:13:07 +02:00
module.ver
moz.build Bug 1525644 - Remove MSVC-enabled CFG flags r=dmajor 2019-02-06 11:44:56 -06:00
nsBrowserApp.cpp Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
permissions Bug 1523980 Revoke special testpilot permissions r=kmag 2019-02-06 22:21:01 +00:00
splash.rc