-
ap authored
- 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: http://svn.webkit.org/repository/webkit/trunk@13071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2b43a901