Bug 1883954: Update, improve and unify HTTPS Telemetry, r=freddyb,kershaw,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D212661
This commit is contained in:
Christoph Kerschbaumer
2024-06-20 07:12:47 +00:00
parent ccb4e8f8b8
commit 61c47ec4a0
18 changed files with 257 additions and 70 deletions

View File

@@ -337,6 +337,15 @@ class nsDocShellLoadState final {
bool GetWasSchemelessInput() { return mWasSchemelessInput; }
void SetHttpsUpgradeTelemetry(
nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsUpgradeTelemetry) {
mHttpsUpgradeTelemetry = aHttpsUpgradeTelemetry;
}
nsILoadInfo::HTTPSUpgradeTelemetryType GetHttpsUpgradeTelemetry() {
return mHttpsUpgradeTelemetry;
}
// Determine the remote type of the process which should be considered
// responsible for this load for the purposes of security checks.
//
@@ -612,6 +621,10 @@ class nsDocShellLoadState final {
// if the to-be-loaded address had it protocol added through a fixup
bool mWasSchemelessInput = false;
// Solely for the use of collecting Telemetry for HTTPS upgrades.
nsILoadInfo::HTTPSUpgradeTelemetryType mHttpsUpgradeTelemetry =
nsILoadInfo::NO_UPGRADE;
};
#endif /* nsDocShellLoadState_h__ */