зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1577217 - Enable the third-party-modules ping in Release build. r=aklotz
No significant issues has been reported since we enabled the ping in early beta of 73. It's time to enable it in all versions including Release build. Differential Revision: https://phabricator.services.mozilla.com/D67023 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4d14cf5024
Коммит
992a84fa86
|
@ -852,10 +852,7 @@ var Impl = {
|
|||
|
||||
// Start the untrusted modules ping, which reports events where
|
||||
// untrusted modules were loaded into the Firefox process.
|
||||
if (
|
||||
AppConstants.EARLY_BETA_OR_EARLIER &&
|
||||
AppConstants.platform == "win"
|
||||
) {
|
||||
if (AppConstants.platform == "win") {
|
||||
TelemetryUntrustedModulesPing.start();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
#include "nsIMemoryReporter.h"
|
||||
#include "nsISeekableStream.h"
|
||||
#include "nsITelemetry.h"
|
||||
#if defined(XP_WIN) && defined(EARLY_BETA_OR_EARLIER)
|
||||
#if defined(XP_WIN)
|
||||
# include "other/UntrustedModules.h"
|
||||
#endif
|
||||
#include "nsJSUtils.h"
|
||||
|
@ -685,7 +685,7 @@ TelemetryImpl::GetMaximalNumberOfConcurrentThreads(uint32_t* ret) {
|
|||
|
||||
NS_IMETHODIMP
|
||||
TelemetryImpl::GetUntrustedModuleLoadEvents(JSContext* cx, Promise** aPromise) {
|
||||
#if defined(XP_WIN) && defined(EARLY_BETA_OR_EARLIER)
|
||||
#if defined(XP_WIN)
|
||||
return Telemetry::GetUntrustedModuleLoadEvents(cx, aPromise);
|
||||
#else
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
|
|
|
@ -104,16 +104,12 @@ bool UntrustedModulesProcessor::IsSupportedProcessType() {
|
|||
|
||||
/* static */
|
||||
RefPtr<UntrustedModulesProcessor> UntrustedModulesProcessor::Create() {
|
||||
#if defined(EARLY_BETA_OR_EARLIER)
|
||||
if (!IsSupportedProcessType()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<UntrustedModulesProcessor> result(new UntrustedModulesProcessor());
|
||||
return result.forget();
|
||||
#else
|
||||
return nullptr;
|
||||
#endif // defined(EARLY_BETA_OR_EARLIER)
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(UntrustedModulesProcessor, nsIObserver)
|
||||
|
|
Загрузка…
Ссылка в новой задаче