| Index: third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp b/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
|
| index 4d0ed17654c5f9558fddcd6cec1b10ca73d76664..6e5a5dc88a32c2b304450090dd9cfe20a3002513 100644
|
| --- a/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
|
| +++ b/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp
|
| @@ -105,7 +105,7 @@ String TextDecoder::decode(const char* start, size_t length, const TextDecodeOpt
|
| if (!m_ignoreBOM && !m_bomSeen && !s.isEmpty()) {
|
| m_bomSeen = true;
|
| String name(m_encoding.name());
|
| - if ((name == "UTF-8" || name == "UTF-16LE" || name == "UTF-16BE") && s[0] == 0xFEFF)
|
| + if ((name == "UTF-8" || name == "utf-16le" || name == "utf-16be") && s[0] == 0xFEFF)
|
| s.remove(0);
|
| }
|
|
|
|
|