summaryrefslogtreecommitdiffstats
path: root/dom/encoding/FallbackEncoding.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-09 15:28:44 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-09 15:28:44 +0200
commit7c2dd4fed5b90f11af7cf5c20011a5c3fb3a5193 (patch)
tree5d5bf8d46b3c9258d130173e9ca456bac64d2465 /dom/encoding/FallbackEncoding.cpp
parent43208a5308f2ac64416d6c962d922776bb664431 (diff)
downloadUXP-7c2dd4fed5b90f11af7cf5c20011a5c3fb3a5193.tar
UXP-7c2dd4fed5b90f11af7cf5c20011a5c3fb3a5193.tar.gz
UXP-7c2dd4fed5b90f11af7cf5c20011a5c3fb3a5193.tar.lz
UXP-7c2dd4fed5b90f11af7cf5c20011a5c3fb3a5193.tar.xz
UXP-7c2dd4fed5b90f11af7cf5c20011a5c3fb3a5193.zip
Add UTF-8 as a default fallback encoding for unknown encodings
Issue #315
Diffstat (limited to 'dom/encoding/FallbackEncoding.cpp')
-rw-r--r--dom/encoding/FallbackEncoding.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/dom/encoding/FallbackEncoding.cpp b/dom/encoding/FallbackEncoding.cpp
index 93fe0f8cb..29411412e 100644
--- a/dom/encoding/FallbackEncoding.cpp
+++ b/dom/encoding/FallbackEncoding.cpp
@@ -55,8 +55,7 @@ FallbackEncoding::Get(nsACString& aFallback)
// Don't let the user break things by setting the override to unreasonable
// values via about:config
if (!EncodingUtils::FindEncodingForLabel(override, mFallback) ||
- !EncodingUtils::IsAsciiCompatible(mFallback) ||
- mFallback.EqualsLiteral("UTF-8")) {
+ !EncodingUtils::IsAsciiCompatible(mFallback)) {
mFallback.Truncate();
}