Bug 910211 - Guess the fallback encoding from the top-level domain when feasible. r=emk.

This commit is contained in:
Henri Sivonen
2014-02-06 11:08:01 +02:00
parent 3c72a7d88f
commit 40ec11e68d
15 changed files with 432 additions and 13 deletions

View File

@@ -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: