Bug 1647310 - Stop storing charset on cache entries. r=necko-reviewers,dragana

Storing the charset on cache entries makes the code path uselessly different
when loading from cache relative to uncached loads. Also, for future
telemetry purposes, caching the charset obscures its original source.

Differential Revision: https://phabricator.services.mozilla.com/D101570
This commit is contained in:
Henri Sivonen
2021-01-15 09:35:56 +00:00
parent 63c445bb78
commit 7ca6606f37
12 changed files with 2 additions and 125 deletions

View File

@@ -1472,7 +1472,6 @@ nsDocShell::GatherCharsetMenuTelemetry() {
break;
case kCharsetFromFallback:
case kCharsetFromDocTypeDefault:
case kCharsetFromCache:
case kCharsetFromParentFrame:
// Changing charset on an unlabeled doc.
if (isFileURL) {