Reviewed by Maciej Stachowiak.
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Apr 2010 22:33:27 +0000 (22:33 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Apr 2010 22:33:27 +0000 (22:33 +0000)
commita040769ff36cd8f8640581943fea4cf7f93cb7c0
tree070de4b7cbcfa7a73adff67dc40ef09ee80b21e2
parent3b85bc22932f62b0c847370110e8c3f95225cdd4
    Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=24572
        XMLHttpRequest.statusText returns always "OK" on Mac

        Covered by existing tests, which now pass.

        * WebCore.base.exp:
        * platform/mac/WebCoreSystemInterface.h:
        * platform/mac/WebCoreSystemInterface.mm:
        Added a WebKitSystemInterface method to fetch status line.

        * platform/network/HTTPParsers.cpp: (WebCore::extractReasonPhraseFromHTTPStatusLine):
        * platform/network/HTTPParsers.h:
        * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::platformLazyInit):
        Moved code for parsing status line to HTTPHeaders, as it's used for both Mac and CF now.

        * platform/network/mac/ResourceResponseMac.mm: (WebCore::ResourceResponse::platformLazyInit):
        Use the actual reason phrase when available, and "OK" otherwise. Synthesizing a reson when
        there isn't one is misleading, so we'll stick to our old broken behavior on Tiger, rather than
        introduce a new broken one.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/mac-tiger/http/tests/xmlhttprequest/web-apps/012-expected.txt [moved from LayoutTests/platform/mac/http/tests/xmlhttprequest/web-apps/012-expected.txt with 100% similarity]
LayoutTests/platform/mac-tiger/http/tests/xmlhttprequest/web-apps/013-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac-tiger/http/tests/xmlhttprequest/xmlhttprequest-missing-file-exception-expected.txt [moved from LayoutTests/platform/win/http/tests/xmlhttprequest/xmlhttprequest-missing-file-exception-expected.txt with 88% similarity]
LayoutTests/platform/mac/http/tests/xmlhttprequest/web-apps/013-expected.txt [deleted file]
LayoutTests/platform/mac/http/tests/xmlhttprequest/xmlhttprequest-missing-file-exception-expected.txt [deleted file]
LayoutTests/platform/win/http/tests/xmlhttprequest/web-apps/012-expected.txt [deleted file]
LayoutTests/platform/win/http/tests/xmlhttprequest/web-apps/013-expected.txt [deleted file]
WebCore/ChangeLog
WebCore/WebCore.base.exp
WebCore/platform/mac/WebCoreSystemInterface.h
WebCore/platform/mac/WebCoreSystemInterface.mm
WebCore/platform/network/HTTPParsers.cpp
WebCore/platform/network/HTTPParsers.h
WebCore/platform/network/cf/ResourceResponseCFNet.cpp
WebCore/platform/network/mac/ResourceResponseMac.mm
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebSystemInterface.m
WebKitLibraries/ChangeLog
WebKitLibraries/WebKitSystemInterface.h
WebKitLibraries/libWebKitSystemInterfaceLeopard.a
WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a
WebKitLibraries/libWebKitSystemInterfaceTiger.a