Bug 1907590: Improve labels for https telemetry, r=freddyb,kershaw,necko-reviewers,maltejur

Differential Revision: https://phabricator.services.mozilla.com/D216675
This commit is contained in:
Christoph Kerschbaumer
2024-07-17 15:29:24 +00:00
parent 9582a78d91
commit 3063e2ccd1
9 changed files with 203 additions and 31 deletions

View File

@@ -2304,6 +2304,11 @@ HttpBaseChannel::UpgradeToSecure() {
NS_ENSURE_TRUE(LoadUpgradableToSecure(), NS_ERROR_NOT_AVAILABLE);
StoreUpgradeToSecure(true);
// todo: Currently UpgradeToSecure() is called only by web extensions, if
// that ever changes, we need to update the following telemetry collection
// to reflect any future changes.
mLoadInfo->SetHttpsUpgradeTelemetry(nsILoadInfo::WEB_EXTENSION_UPGRADE);
return NS_OK;
}