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

Unified Diff: Source/core/html/imports/HTMLImportLoader.cpp

Issue 178883002: Set encoding to UTF-8 for HTML Imports if no encoding is specified in the HTTP response (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged to trunk Created 6 years, 8 months 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
« no previous file with comments | « LayoutTests/http/tests/htmlimports/resources/no-encoding.cgi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportLoader.cpp
diff --git a/Source/core/html/imports/HTMLImportLoader.cpp b/Source/core/html/imports/HTMLImportLoader.cpp
index 8dbd88dcd486969bcd4f82b164731bb2ec09f8b7..0459452e604c909c3bf1c9a3a4df68c38fe18d24 100644
--- a/Source/core/html/imports/HTMLImportLoader.cpp
+++ b/Source/core/html/imports/HTMLImportLoader.cpp
@@ -108,7 +108,7 @@ HTMLImportLoader::State HTMLImportLoader::startWritingAndParsing(const ResourceR
DocumentInit init = DocumentInit(response.url(), 0, m_controller->master()->contextDocument(), m_controller)
.withRegistrationContext(m_controller->master()->registrationContext());
m_importedDocument = HTMLDocument::create(init);
- m_writer = DocumentWriter::create(m_importedDocument.get(), response.mimeType(), response.textEncodingName());
+ m_writer = DocumentWriter::create(m_importedDocument.get(), response.mimeType(), "UTF-8");
return StateLoading;
}
« no previous file with comments | « LayoutTests/http/tests/htmlimports/resources/no-encoding.cgi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698