Chromium Code Reviews| Index: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
| diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
| index 9cd21b6d35e61ddfb4dc3c0be6d07fa3a5d1175f..c9b9918a00e810119605a500a15a875038388a4e 100644 |
| --- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
| +++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
| @@ -1548,7 +1548,10 @@ void XMLDocumentParser::doEnd() { |
| bool xmlViewerMode = !m_sawError && !m_sawCSS && !m_sawXSLTransform && |
| hasNoStyleInformation(document()); |
| if (xmlViewerMode) { |
| - document()->setIsViewSource(true); |
| + if (document()->canExecuteScripts(NotAboutToExecuteScript)) |
|
jochen (gone - plz use gerrit)
2017/03/14 20:13:53
why this if ()?
adithyas
2017/03/14 20:55:15
I thought we still need the unique origin when scr
|
| + document()->setIsViewSourceWithoutUniqueOrigin(); |
| + else |
| + document()->setIsViewSource(true); |
| transformDocumentToXMLTreeView(*document()); |
| } else if (m_sawXSLTransform) { |
| xmlDocPtr doc = |