mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237091. Remove WAP telemetry probe. r=mcmanus
This commit is contained in:
parent
ce16491eb8
commit
573f5f75e2
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user