Bug 134264 - [XHR] open method must uppercase only standard method types
Summary: [XHR] open method must uppercase only standard method types
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mahesh Kulkarni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 12:41 PDT by Mahesh Kulkarni
Modified: 2014-06-27 09:02 PDT (History)
8 users (show)

See Also:


Attachments
Patch (9.88 KB, patch)
2014-06-24 12:48 PDT, Mahesh Kulkarni
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (657.79 KB, application/zip)
2014-06-24 17:45 PDT, Build Bot
no flags Details
Patch (9.88 KB, patch)
2014-06-26 09:13 PDT, Mahesh Kulkarni
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-01 for mac-mountainlion (508.84 KB, application/zip)
2014-06-26 10:43 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2 (569.35 KB, application/zip)
2014-06-26 11:24 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (514.79 KB, application/zip)
2014-06-26 11:41 PDT, Build Bot
no flags Details
Patch (9.73 KB, patch)
2014-06-26 12:39 PDT, Mahesh Kulkarni
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.