Bug 910211 - Guess the fallback encoding from the top-level domain when feasible. r=emk.
This commit is contained in:
@@ -1994,6 +1994,10 @@ nsDocShell::GatherCharsetMenuTelemetry()
|
||||
|
||||
int32_t charsetSource = doc->GetDocumentCharacterSetSource();
|
||||
switch (charsetSource) {
|
||||
case kCharsetFromTopLevelDomain:
|
||||
// Unlabeled doc on a domain that we map to a fallback encoding
|
||||
Telemetry::Accumulate(Telemetry::CHARSET_OVERRIDE_SITUATION, 7);
|
||||
break;
|
||||
case kCharsetFromFallback:
|
||||
case kCharsetFromDocTypeDefault:
|
||||
case kCharsetFromCache:
|
||||
|
||||
Reference in New Issue
Block a user