Reviewed by Geoff.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 18:25:13 +0000 (18:25 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 18:25:13 +0000 (18:25 +0000)
commit7c9eb3a981b309ee17538e1c3eebcb22ef51e600
tree493d376c7eda18053ffda2afb009d7869ee8efca
parent548d12c6a815f7b873bd7f0e5daef87be7627b7c
    Reviewed by Geoff.

        http://bugs.webkit.org/show_bug.cgi?id=6275
        XMLHttpRequest.getResponseHeader should return a null string for non-existent headers

WebCore:
        * bindings/js/JSXMLHttpRequest.cpp:
        (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
        Convert null getResponseHeader strings to JS null, rather than undefined.

LayoutTests:
        * http/tests/xmlhttprequest/methods-async-expected.txt:
        * http/tests/xmlhttprequest/methods-expected.txt:
        * http/tests/xmlhttprequest/methods-lower-case-expected.txt:
        Updated the results.

        * http/tests/xmlhttprequest/web-apps/008-expected.txt:
        * http/tests/xmlhttprequest/web-apps/008-test.asis:
        * http/tests/xmlhttprequest/web-apps/008.html:
        Changed to test both missing and empty headers, also test case insensitivity
        of header names.
        Please note that neither Firefox nor IE passes this test now - the former returns
        null in both cases, and the latter returns empty strings.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt
LayoutTests/http/tests/xmlhttprequest/methods-expected.txt
LayoutTests/http/tests/xmlhttprequest/methods-lower-case-expected.txt
LayoutTests/http/tests/xmlhttprequest/web-apps/008-expected.txt
LayoutTests/http/tests/xmlhttprequest/web-apps/008-test.asis
LayoutTests/http/tests/xmlhttprequest/web-apps/008.html
WebCore/ChangeLog
WebCore/bindings/js/JSXMLHttpRequest.cpp