| 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
 | 
| 
 |