Commit 87c26e7d authored by antonm@chromium.org's avatar antonm@chromium.org

2011-02-01 Anton Muhin <antonm@chromium.org>

        Reviewed by Adam Barth.

        Propagate parent document security origin to newly create Document XML response
        https://bugs.webkit.org/show_bug.cgi?id=53444

        Covered by the existing tests.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::responseXML):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ca411388
2011-02-01 Anton Muhin <antonm@chromium.org>
Reviewed by Adam Barth.
Propagate parent document security origin to newly create Document XML response
https://bugs.webkit.org/show_bug.cgi?id=53444
Covered by the existing tests.
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::responseXML):
2011-02-01 Yury Semikhatsky <yurys@chromium.org>
Unreviewed. Rollout r77230 which caused many layout tests
......@@ -249,6 +249,7 @@ Document* XMLHttpRequest::responseXML(ExceptionCode& ec)
m_responseXML = Document::create(0, m_url);
// FIXME: Set Last-Modified.
m_responseXML->setContent(m_responseBuilder.toStringPreserveCapacity());
m_responseXML->setSecurityOrigin(document()->securityOrigin());
if (!m_responseXML->wellFormed())
m_responseXML = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment