Bug 62221

Summary: [Qt] Fix methods.html and methods-lower-case.html
Product: WebKit Reporter: Robert Hogan <robert>
Component: New BugsAssignee: Robert Hogan <robert>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, kenneth, luiz, qi.2.zhang
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch kling: review+, kling: commit-queue-

Description Robert Hogan 2011-06-07 11:16:07 PDT
[Qt] Fix methods.html and methods-lower-case.html
Comment 1 Robert Hogan 2011-06-07 11:27:13 PDT
Created attachment 96265 [details]
Patch
Comment 2 Robert Hogan 2011-06-07 11:37:13 PDT
Created attachment 96268 [details]
Patch
Comment 3 Robert Hogan 2011-06-07 11:39:08 PDT
Fyi for the reviewer, this is how the Qt results for the unskipped methods-* tests compare to Mac:

--- /tmp/layout-test-results/http/tests/xmlhttprequest/methods-expected.txt	2011-06-07 19:37:36.000000000 +0100
+++ /tmp/layout-test-results/http/tests/xmlhttprequest/methods-actual.txt	2011-06-07 19:37:36.000000000 +0100
@@ -4,17 +4,17 @@
 GET(null): GET(null bytes), Content-Type: null
 GET("123"): GET(null bytes), Content-Type: null
 POST(""): POST(0 bytes), Content-Type: application/xml
-POST(null): POST(0 bytes), Content-Type: null
+POST(null): POST(0 bytes), Content-Type: application/octet-stream
 POST("123"): POST(3 bytes), Content-Type: application/xml
 PUT(""): PUT(0 bytes), Content-Type: application/xml
 PUT(null): PUT(0 bytes), Content-Type: null
 PUT("123"): PUT(3 bytes), Content-Type: application/xml
-DELETE(""): DELETE(0 bytes), Content-Type: application/xml
-DELETE(null): DELETE(0 bytes), Content-Type: null
-DELETE("123"): DELETE(3 bytes), Content-Type: application/xml
-HEAD(""): HEAD(0 bytes), Content-Type: null
-HEAD(null): HEAD(0 bytes), Content-Type: null
-HEAD("123"): HEAD(0 bytes), Content-Type: null
+DELETE(""): DELETE(null bytes), Content-Type: null
+DELETE(null): DELETE(null bytes), Content-Type: null
+DELETE("123"): DELETE(null bytes), Content-Type: null
+HEAD(""): HEAD(null bytes), Content-Type: null
+HEAD(null): HEAD(null bytes), Content-Type: null
+HEAD("123"): HEAD(null bytes), Content-Type: null
 WKFOOBAR(""): WKFOOBAR(0 bytes), Content-Type: application/xml
 WKFOOBAR(null): WKFOOBAR(0 bytes), Content-Type: null
 WKFOOBAR("123"): WKFOOBAR(3 bytes), Content-Type: application/xml

The differences are described in the Changelog.

This bug is a relative of https://bugs.webkit.org/show_bug.cgi?id=60440 so cc'ing Luiz and Adam.
Comment 4 Luiz Agostini 2011-06-08 13:04:52 PDT
Comment on attachment 96268 [details]
Patch

I am not an official reviewer but it LGTM.
Comment 5 Andreas Kling 2011-06-09 13:10:14 PDT
Comment on attachment 96268 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96268&action=review

r=me

> Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp:601
> +void QNetworkReplyHandler::clearContentsHeaders()

clearContentHeaders()

> Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp:603
> +    // Clearing Contents-length and Contents-type of the requests that do not have contents.

Content-length and Content-type

> Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp:613
> +    // We may be uploading files so prevent QNR from buffering data

Period at end of Kenneth.
Comment 6 Robert Hogan 2011-06-12 04:52:35 PDT
Committed r88612: <http://trac.webkit.org/changeset/88612>
Comment 7 Robert Hogan 2011-06-25 03:03:20 PDT
*** Bug 60566 has been marked as a duplicate of this bug. ***