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

Unified Diff: Source/core/dom/Document.cpp

Issue 1180793002: Document attribute charset and its aliases to return UTF-8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed defaultCharset changes Created 5 years, 6 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 770524fd52e9b5655e3be6c233914a6481137d15..50ae6dd56686826499e454e87e076eaf2d739ccc 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -4217,6 +4217,7 @@ void Document::setEncodingData(const DocumentEncodingData& newData)
m_titleElement->setTextContent(correctlyDecodedTitle);
}
+ ASSERT(newData.encoding().isValid());
m_encodingData = newData;
// FIXME: Should be removed as part of https://code.google.com/p/chromium/issues/detail?id=319643

Powered by Google App Engine
This is Rietveld 408576698