Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 18:19:51 +0000 (18:19 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 18:19:51 +0000 (18:19 +0000)
commit548d12c6a815f7b873bd7f0e5daef87be7627b7c
treecc207783a9f0c93bf99950d35f164ac9da177419
parentae68b7c151fec1ac7079294f5a4440727e882344
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=9854
        HTTP Refresh header with quotes is parsed incorrectly

        Test: http/tests/misc/redirect-with-quotes.php

        * WebCore.xcodeproj/project.pbxproj:
        Added HTTPParsers.{h,cpp}. I intend to move Content-Type parsing here, as well.

        * dom/Document.cpp:
        (WebCore::Document::processHttpEquiv):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::receivedFirstData):
        Use the new implementation in HTTPHeaders.

        * platform/network/HTTPParsers.cpp: Added.
        (WebCore::skipWhiteSpace):
        (WebCore::parseHTTPRefresh):
        * platform/network/HTTPParsers.h: Added.
        Merged and rewrote existing implementations for better Firefox compatibility.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/misc/redirect-with-quotes-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/misc/redirect-with-quotes.php [new file with mode: 0644]
LayoutTests/http/tests/misc/resources/redirect-step2.php [new file with mode: 0644]
LayoutTests/http/tests/misc/resources/redirect-step3.php [new file with mode: 0644]
LayoutTests/http/tests/misc/resources/redirect-step4.php [new file with mode: 0644]
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/dom/Document.cpp
WebCore/loader/FrameLoader.cpp
WebCore/platform/network/HTTPParsers.cpp [new file with mode: 0644]
WebCore/platform/network/HTTPParsers.h [new file with mode: 0644]