Bug 1237091. Remove WAP telemetry probe. r=mcmanus

This commit is contained in:
Mike Taylor 2016-01-05 17:11:50 -06:00
parent ce16491eb8
commit 573f5f75e2
2 changed files with 0 additions and 22 deletions

View File

@ -1627,23 +1627,6 @@ nsHttpChannel::ProcessResponse()
Telemetry::Accumulate(Telemetry::HTTP_RESPONSE_VERSION,
mResponseHead->Version());
#if defined(ANDROID) || defined(MOZ_B2G)
if (gHttpHandler->IsTelemetryEnabled()) {
// Gather telemetry on being sent a WAP content-type
// This check will catch (at least) the following content types:
// application/wml+xml, application/vnd.wap.xhtml+xml,
// text/vnd.wap.wml, application/vnd.wap.wmlc
bool isWap = false;
if (!mResponseHead->ContentType().IsEmpty() && (
mResponseHead->ContentType().Find(".wap") != -1 ||
mResponseHead->ContentType().Find("/wml") != -1)) {
isWap = true;
}
Telemetry::Accumulate(Telemetry::HTTP_WAP_CONTENT_TYPE_RECEIVED, isWap);
}
#endif
return rv;
}

View File

@ -1249,11 +1249,6 @@
"kind": "boolean",
"description": "Whether a HTTP transaction routed via Alt-Svc was scheme=http"
},
"HTTP_WAP_CONTENT_TYPE_RECEIVED": {
"expires_in_version": "45",
"kind": "boolean",
"description": "Whether a WAP content type response is served to the browser."
},
"HTTP_SCHEME_UPGRADE": {
"expires_in_version": "never",
"kind": "enumerated",