mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Remove all C++ Telemetry Accumulation calls.
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables). Stub resolution/removal should be a follow-up to this.
This commit is contained in:
parent
ac3468d5cc
commit
8c8145e620
186 changed files with 48 additions and 2957 deletions
|
|
@ -805,29 +805,22 @@ nsNSSComponent::MaybeEnableFamilySafetyCompatibility()
|
|||
if (familySafetyMode > 2) {
|
||||
familySafetyMode = 0;
|
||||
}
|
||||
Telemetry::Accumulate(Telemetry::FAMILY_SAFETY, familySafetyMode);
|
||||
if (familySafetyMode == 0) {
|
||||
return;
|
||||
}
|
||||
bool familySafetyEnabled;
|
||||
nsresult rv = AccountHasFamilySafetyEnabled(familySafetyEnabled);
|
||||
if (NS_FAILED(rv)) {
|
||||
Telemetry::Accumulate(Telemetry::FAMILY_SAFETY, 3);
|
||||
return;
|
||||
}
|
||||
if (!familySafetyEnabled) {
|
||||
Telemetry::Accumulate(Telemetry::FAMILY_SAFETY, 4);
|
||||
return;
|
||||
}
|
||||
Telemetry::Accumulate(Telemetry::FAMILY_SAFETY, 5);
|
||||
if (familySafetyMode == 2) {
|
||||
rv = LoadFamilySafetyRoot();
|
||||
if (NS_FAILED(rv)) {
|
||||
Telemetry::Accumulate(Telemetry::FAMILY_SAFETY, 6);
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug,
|
||||
("failed to load Family Safety root"));
|
||||
} else {
|
||||
Telemetry::Accumulate(Telemetry::FAMILY_SAFETY, 7);
|
||||
}
|
||||
}
|
||||
#endif // XP_WIN
|
||||
|
|
@ -1580,13 +1573,6 @@ void nsNSSComponent::setValidationOptions(bool isInitialSetting,
|
|||
bool ocspRequired = ocspEnabled &&
|
||||
Preferences::GetBool("security.OCSP.require", false);
|
||||
|
||||
// We measure the setting of the pref at startup only to minimize noise by
|
||||
// addons that may muck with the settings, though it probably doesn't matter.
|
||||
if (isInitialSetting) {
|
||||
Telemetry::Accumulate(Telemetry::CERT_OCSP_ENABLED, ocspEnabled);
|
||||
Telemetry::Accumulate(Telemetry::CERT_OCSP_REQUIRED, ocspRequired);
|
||||
}
|
||||
|
||||
bool ocspStaplingEnabled = Preferences::GetBool("security.ssl.enable_ocsp_stapling",
|
||||
true);
|
||||
PublicSSLState()->SetOCSPStaplingEnabled(ocspStaplingEnabled);
|
||||
|
|
@ -1978,9 +1964,6 @@ nsNSSComponent::InitializeNSS()
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
if (PK11_IsFIPS()) {
|
||||
Telemetry::Accumulate(Telemetry::FIPS_ENABLED, true);
|
||||
}
|
||||
MOZ_LOG(gPIPNSSLog, LogLevel::Debug, ("NSS Initialization done\n"));
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue