зеркало из https://github.com/mozilla/gecko-dev.git
a66f824994
* Significant cleanup to `ModuleEvaluator` * `UntrustedModuleData` holds all of the accumulated untrusted module info for a single process. * `ProcessedModuleLoadEvent` holds information about an individual untrusted module load in a Gecko-friendly, sanitized, format. * Since multiple `ProcessModuleLoadEvent` objects may reference the same module, we store module metadata in a shared `ModuleInfo` structure. * The `UntrustedModulesProcessor` receives the events from `mozglue` and processes them on a background thread: ** It does not start background processing until the main thread has gone idle. The idea here is that we do not want to add any more background work until we are reasonably confident that Gecko is no longer starting up or doing other intense activity. ** Background processing runs at a background priority level, *except* when results are requested by telemetry itself. ** Telemetry requests the data via `UntrustedModulesProcessor::GetProcessedData` which runs at normal priority and returns a promise to the caller. Depends on D43159 Differential Revision: https://phabricator.services.mozilla.com/D43160 --HG-- rename : toolkit/xre/ModuleEvaluator_windows.cpp => toolkit/xre/ModuleEvaluator.cpp rename : toolkit/xre/ModuleEvaluator_windows.cpp => toolkit/xre/ModuleEvaluator.h rename : toolkit/xre/ModuleVersionInfo_windows.cpp => toolkit/xre/ModuleVersionInfo.cpp rename : toolkit/xre/ModuleVersionInfo_windows.h => toolkit/xre/ModuleVersionInfo.h rename : toolkit/xre/ModuleEvaluator_windows.cpp => toolkit/xre/UntrustedModulesData.cpp rename : toolkit/xre/ModuleEvaluator_windows.h => toolkit/xre/UntrustedModulesData.h rename : toolkit/xre/ModuleEvaluator_windows.cpp => toolkit/xre/UntrustedModulesProcessor.cpp rename : toolkit/xre/ModuleEvaluator_windows.h => toolkit/xre/UntrustedModulesProcessor.h extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
test | ||
AutoSQLiteLifetime.cpp | ||
AutoSQLiteLifetime.h | ||
Bootstrap.cpp | ||
Bootstrap.h | ||
CmdLineAndEnvUtils.cpp | ||
CmdLineAndEnvUtils.h | ||
CreateAppData.cpp | ||
EventTracer.cpp | ||
EventTracer.h | ||
LauncherRegistryInfo.cpp | ||
LauncherRegistryInfo.h | ||
MacApplicationDelegate.h | ||
MacApplicationDelegate.mm | ||
MacAutoreleasePool.h | ||
MacAutoreleasePool.mm | ||
MacLaunchHelper.h | ||
MacLaunchHelper.mm | ||
ModuleEvaluator.cpp | ||
ModuleEvaluator.h | ||
ModuleVersionInfo.cpp | ||
ModuleVersionInfo.h | ||
PolicyChecks.h | ||
ProfileReset.cpp | ||
ProfileReset.h | ||
SafeMode.h | ||
UIKitDirProvider.h | ||
UIKitDirProvider.mm | ||
UntrustedModulesData.cpp | ||
UntrustedModulesData.h | ||
UntrustedModulesProcessor.cpp | ||
UntrustedModulesProcessor.h | ||
WinDllServices.cpp | ||
WinDllServices.h | ||
WinTokenUtils.cpp | ||
WinTokenUtils.h | ||
components.conf | ||
glxtest.cpp | ||
moz.build | ||
nsAndroidStartup.cpp | ||
nsAppRunner.cpp | ||
nsAppRunner.h | ||
nsAppStartupNotifier.cpp | ||
nsAppStartupNotifier.h | ||
nsCommandLineServiceMac.h | ||
nsCommandLineServiceMac.mm | ||
nsConsoleWriter.cpp | ||
nsEmbedFunctions.cpp | ||
nsEmbeddingModule.cpp | ||
nsGDKErrorHandler.cpp | ||
nsGDKErrorHandler.h | ||
nsIAppStartupNotifier.h | ||
nsINativeAppSupport.idl | ||
nsIWinAppHelper.idl | ||
nsIXREDirProvider.idl | ||
nsNativeAppSupportBase.cpp | ||
nsNativeAppSupportBase.h | ||
nsNativeAppSupportCocoa.mm | ||
nsNativeAppSupportDefault.cpp | ||
nsNativeAppSupportUnix.cpp | ||
nsNativeAppSupportWin.cpp | ||
nsNativeAppSupportWin.h | ||
nsSigHandlers.cpp | ||
nsSigHandlers.h | ||
nsUpdateDriver.cpp | ||
nsUpdateDriver.h | ||
nsWindowsRestart.cpp | ||
nsWindowsWMain.cpp | ||
nsX11ErrorHandler.cpp | ||
nsX11ErrorHandler.h | ||
nsXREDirProvider.cpp | ||
nsXREDirProvider.h | ||
platform.ini | ||
updaterfileutils_osx.h | ||
updaterfileutils_osx.mm |