| Index: third_party/WebKit/Source/web/WebPageSerializerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebPageSerializerImpl.cpp b/third_party/WebKit/Source/web/WebPageSerializerImpl.cpp
|
| index 3c933e1b6602a56648870521ec6f10c2e5881a80..b2a8a483f661c086297e79b0ebe8f030c92c04cf 100644
|
| --- a/third_party/WebKit/Source/web/WebPageSerializerImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebPageSerializerImpl.cpp
|
| @@ -443,6 +443,10 @@ bool WebPageSerializerImpl::serialize()
|
| didSerialization = true;
|
|
|
| const WTF::TextEncoding& textEncoding = document->encoding().isValid() ? document->encoding() : UTF8Encoding();
|
| + if (textEncoding.isNonByteBasedEncoding()) {
|
| + const UChar byteOrderMark = 0xFEFF;
|
| + m_dataBuffer.append(byteOrderMark);
|
| + }
|
|
|
| SerializeDomParam param(url, textEncoding, document);
|
|
|
|
|