Reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Mar 2006 17:54:36 +0000 (17:54 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Mar 2006 17:54:36 +0000 (17:54 +0000)
commit3defddd7b3993f0ebc095a83a01f473f605d803e
tree8eb107e028acc405ec1e87425d73e3905fffbd5a
parentf6aa5cb49694a55270d362cdb8c13f117c99e6d0
    Reviewed by Darin.

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=3812
          XMLHttpRequest: PUT, DELETE, HEAD and all other methods but POST actually do a GET.

        HEAD is currently unimplemented because of what seems to be a bug in NSURLConnection,
        and does a GET instead.

WebCore:
        * kwq/KWQKJobClasses.h: Add a method parameter to TransferJob.
        * kwq/KWQKJobClasses.mm:
        (WebCore::TransferJobPrivate::TransferJobPrivate):
        (WebCore::TransferJob::TransferJob):
        (WebCore::TransferJob::method):
        * bridge/mac/WebCoreFrameBridge.h: URL loading functions now take a method parameter.
        * dom/xml_tokenizer.cpp:
        (WebCore::openFunc):
        * khtml/xsl/xslt_processorimpl.cpp:
        (DOM::docLoaderFunc):
        * kwq/KWQLoader.mm:
        (KWQServeRequest):
        (KWQServeSynchronousRequest):
        * loader/loader.cpp:
        (WebCore::Loader::servePendingRequests):
        * page/Frame.cpp:
        (WebCore::Frame::didOpenURL):
        * xml/xmlhttprequest.cpp:
        (WebCore::XMLHttpRequest::send): Honor the method passed in open().
        * khtml/ecma/JSXMLHttpRequest.cpp:
        (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Don't serialize null as "null".

WebKit:
        All WebKit changes are to use the method parameter passed from WebCore.

        * WebCoreSupport/WebFrameBridge.m:
        (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
        (-[WebFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
        (-[WebFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
        * WebCoreSupport/WebSubresourceLoader.h:
        * WebCoreSupport/WebSubresourceLoader.m:
        (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:referrer:forDataSource:]):
        (+[WebSubresourceLoader startLoadingResource:withMethod:URL:customHeaders:postData:referrer:forDataSource:]):

LayoutTests:
        * http/tests/xmlhttprequest/methods-async-expected.txt: Added.
        * http/tests/xmlhttprequest/methods-async.html: Added.
        * http/tests/xmlhttprequest/methods-expected.txt: Added.
        * http/tests/xmlhttprequest/methods.cgi: Added.
        * http/tests/xmlhttprequest/methods.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/xmlhttprequest/methods-async-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/methods-async.html [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/methods-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/xmlhttprequest/methods.cgi [new file with mode: 0755]
LayoutTests/http/tests/xmlhttprequest/methods.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bridge/mac/WebCoreFrameBridge.h
WebCore/dom/xml_tokenizer.cpp
WebCore/khtml/ecma/JSXMLHttpRequest.cpp
WebCore/khtml/xsl/xslt_processorimpl.cpp
WebCore/kwq/KWQKJobClasses.h
WebCore/kwq/KWQKJobClasses.mm
WebCore/kwq/KWQLoader.mm
WebCore/loader/loader.cpp
WebCore/page/Frame.cpp
WebCore/xml/xmlhttprequest.cpp
WebKit/ChangeLog
WebKit/WebCoreSupport/WebFrameBridge.m
WebKit/WebCoreSupport/WebSubresourceLoader.h
WebKit/WebCoreSupport/WebSubresourceLoader.m