| Index: third_party/WebKit/Source/core/xml/DOMParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/xml/DOMParser.cpp b/third_party/WebKit/Source/core/xml/DOMParser.cpp
|
| index 41db8624bcfddc214c29641d2b129889805fe157..7bff95367878609ff9f3d55be35f064d3e0381d2 100644
|
| --- a/third_party/WebKit/Source/core/xml/DOMParser.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/DOMParser.cpp
|
| @@ -29,6 +29,7 @@ Document* DOMParser::parseFromString(const String& str, const String& type) {
|
| Document* doc = DOMImplementation::createDocument(
|
| type, DocumentInit(KURL(), nullptr, m_contextDocument), false);
|
| doc->setContent(str);
|
| + doc->setMimeType(AtomicString(type));
|
| if (m_contextDocument) {
|
| doc->setURL(m_contextDocument->url());
|
| doc->setSecurityOrigin(m_contextDocument->getSecurityOrigin());
|
|
|