| 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 98a2a5bef7479c35e59885685210654957238ccc..e0d39e9338529e23c660bcab8fff1d9167d505ee 100644
|
| --- a/third_party/WebKit/Source/core/xml/DOMParser.cpp
|
| +++ b/third_party/WebKit/Source/core/xml/DOMParser.cpp
|
| @@ -28,8 +28,10 @@ Document* DOMParser::parseFromString(const String& str, const String& type) {
|
| Document* doc = DOMImplementation::createDocument(
|
| type, DocumentInit(KURL(), nullptr, m_contextDocument), false);
|
| doc->setContent(str);
|
| - if (m_contextDocument)
|
| + if (m_contextDocument) {
|
| + doc->setURL(m_contextDocument->url());
|
| doc->setSecurityOrigin(m_contextDocument->getSecurityOrigin());
|
| + }
|
| return doc;
|
| }
|
|
|
|
|