Bug 134264

Summary: [XHR] open method must uppercase only standard method types
Product: WebKit Reporter: Mahesh Kulkarni <maheshk>
Component: New BugsAssignee: Mahesh Kulkarni <maheshk>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, buildbot, bunhere, cdumez, commit-queue, gyuyoung.kim, rniwa, sergio
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
none
Patch
none
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion
none
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
none
Patch none

Description Mahesh Kulkarni 2014-06-24 12:41:49 PDT
[XHR] open method must uppercase only standard method types
Comment 1 Mahesh Kulkarni 2014-06-24 12:48:55 PDT
Created attachment 233731 [details]
Patch
Comment 2 Mahesh Kulkarni 2014-06-24 12:50:22 PDT
Now all desktop browsers IE11, Mozilla 31, Chrome (dev m37) supports capitalizing only standard method names as per spec http://xhr.spec.whatwg.org/#the-open()-method.
Comment 3 Mahesh Kulkarni 2014-06-24 12:51:02 PDT
(In reply to comment #2)
> Now all desktop browsers IE11, Mozilla 31, Chrome (dev m37) supports capitalizing only standard method names as per spec http://xhr.spec.whatwg.org/#the-open()-method.

This change will also pass all failing tests from w3c-test suite
http://w3c-test.org/XMLHttpRequest/open-method-case-sensitive.htm.
Comment 4 Alexey Proskuryakov 2014-06-24 12:58:56 PDT
Comment on attachment 233731 [details]
Patch

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

> Source/WebCore/xml/XMLHttpRequest.cpp:-397
> -    const char* const methods[] = { "COPY", "DELETE", "GET", "HEAD", "INDEX", "LOCK", "M-POST", "MKCOL", "MOVE", "OPTIONS", "POST", "PROPFIND", "PROPPATCH", "PUT", "UNLOCK" };

Is there test coverage for common methods whose handling changes here (eg propfind)?
Comment 5 Mahesh Kulkarni 2014-06-24 13:09:01 PDT
(In reply to comment #4)
> (From update of attachment 233731 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=233731&action=review
> 
> > Source/WebCore/xml/XMLHttpRequest.cpp:-397
> > -    const char* const methods[] = { "COPY", "DELETE", "GET", "HEAD", "INDEX", "LOCK", "M-POST", "MKCOL", "MOVE", "OPTIONS", "POST", "PROPFIND", "PROPPATCH", "PUT", "UNLOCK" };
> 
> Is there test coverage for common methods whose handling changes here (eg propfind)?

I did not find any for non-standard type method names.
Comment 6 Build Bot 2014-06-24 17:45:17 PDT
Comment on attachment 233731 [details]
Patch

Attachment 233731 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6292203869569024

New failing tests:
media/W3C/audio/canPlayType/canPlayType_application_octet_stream_with_codecs_1.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html
Comment 7 Build Bot 2014-06-24 17:45:20 PDT
Created attachment 233770 [details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 8 Mahesh Kulkarni 2014-06-25 09:58:42 PDT
mac-w2 seems red because of flaky test.
Comment 9 Alexey Proskuryakov 2014-06-26 00:30:25 PDT
Are you sure? These failures seem related to the patch:

http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html
Comment 10 Mahesh Kulkarni 2014-06-26 09:13:58 PDT
Created attachment 233905 [details]
Patch
Comment 11 Build Bot 2014-06-26 10:43:21 PDT
Comment on attachment 233905 [details]
Patch

Attachment 233905 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5775701303099392

New failing tests:
http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html
Comment 12 Build Bot 2014-06-26 10:43:25 PDT
Created attachment 233912 [details]
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-01  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 13 Build Bot 2014-06-26 11:24:17 PDT
Comment on attachment 233905 [details]
Patch

Attachment 233905 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4607389642784768

New failing tests:
media/W3C/video/readyState/readyState_during_canplay.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html
Comment 14 Build Bot 2014-06-26 11:24:21 PDT
Created attachment 233917 [details]
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-16  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 15 Build Bot 2014-06-26 11:41:30 PDT
Comment on attachment 233905 [details]
Patch

Attachment 233905 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/6539798508470272

New failing tests:
http/tests/xmlhttprequest/xmlhttprequest-open-method-case-insensitive.html
http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html
Comment 16 Build Bot 2014-06-26 11:41:34 PDT
Created attachment 233919 [details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 17 Mahesh Kulkarni 2014-06-26 12:39:37 PDT
Created attachment 233925 [details]
Patch
Comment 18 Mahesh Kulkarni 2014-06-27 08:30:38 PDT
Comment on attachment 233925 [details]
Patch

Thanks Darin!
Comment 19 WebKit Commit Bot 2014-06-27 09:01:58 PDT
Comment on attachment 233925 [details]
Patch

Clearing flags on attachment: 233925

Committed r170530: <http://trac.webkit.org/changeset/170530>
Comment 20 WebKit Commit Bot 2014-06-27 09:02:05 PDT
All reviewed patches have been landed.  Closing bug.