Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Sep 2006 05:05:17 +0000 (05:05 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Sep 2006 05:05:17 +0000 (05:05 +0000)
commitf08bbaad6e6fac0b19e1aaf9170546ed32be5347
tree6e8fda69250d05e212d33e42ba4466b051b9ff3d
parent7dc99a035e50a85cdb5b41a0a1ca62ce3ddd8cc8
    Reviewed by Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=10716
        XMLHttpRequest.responseText is null if HTTP response is empty

        Extended existing tests:
        - http/tests/xmlhttrequest/zero-length-response.html
        - http/tests/xmlhttrequest/zero-length-response-sync.html

        * xml/xmlhttprequest.cpp:
        (WebCore::XMLHttpRequest::XMLHttpRequest): Initialize responseText to an empty string.
        (WebCore::XMLHttpRequest::open): Reset responseText to an empty string.
        * bindings/js/JSXMLHttpRequest.cpp:
        (KJS::JSXMLHttpRequest::getValueProperty): Return null rather than undefined
        for nil responseXML.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/supported-xml-content-types-expected.txt
LayoutTests/http/tests/xmlhttprequest/zero-length-response-expected.txt
LayoutTests/http/tests/xmlhttprequest/zero-length-response-sync-expected.txt
LayoutTests/http/tests/xmlhttprequest/zero-length-response-sync.html
LayoutTests/http/tests/xmlhttprequest/zero-length-response.html
WebCore/ChangeLog
WebCore/bindings/js/JSXMLHttpRequest.cpp
WebCore/xml/xmlhttprequest.cpp