Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp

Issue 1470893002: [Fetch] Always use utf-8 for decoding in text() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add fixes. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp
index 107453c0547a8cdb3a5c3e064d01070208c5b9ee..4bff1ac95c353a654248256f7c3c12b6441073a5 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.cpp
@@ -218,7 +218,7 @@ protected:
ASSERT(!m_decoder);
ASSERT(!m_reader);
m_client = client;
- m_decoder = TextResourceDecoder::create("text/plain", UTF8Encoding());
+ m_decoder = TextResourceDecoder::create("text/plain", UTF8Encoding(), false, TextResourceDecoder::CheckForOnlyUTF8BOM);
m_reader = handle->obtainReader(this);
}

Powered by Google App Engine
This is Rietveld 408576698