Chromium Code Reviews| 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 694c823537fd26515f275bd1652c7d9b25ae848e..5a5d293601413f3bf543a906abb61ee7603587a6 100644 |
| --- a/third_party/WebKit/Source/web/WebPageSerializerImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebPageSerializerImpl.cpp |
| @@ -453,6 +453,10 @@ bool WebPageSerializerImpl::serialize() |
| didSerialization = true; |
| const WTF::TextEncoding& textEncoding = document->encoding().isValid() ? document->encoding() : UTF8Encoding(); |
| + if (textEncoding.isNonByteBasedEncoding()) { |
| + const UChar bomCharacter = 0xFEFF; |
|
jsbell
2015/12/08 01:19:07
nit: maybe call this `byteOrderMark` as it's not t
Łukasz Anforowicz
2015/12/09 00:50:59
Done.
|
| + m_dataBuffer.append(bomCharacter); |
| + } |
| SerializeDomParam param(url, textEncoding, document, m_localDirectoryName); |