Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Issue 347653003: XMLHttpRequest must build a request using the given method as-is for non-standard types (Closed)

Created:
6 years, 6 months ago by maheshkk
Modified:
6 years, 6 months ago
CC:
blink-reviews, sof, Takashi Toyoshima
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

XMLHttpRequest must build a request using the given method as-is for non-standard types As per step-5 of http://xhr.spec.whatwg.org/#the-open()-method only DELETE, PUT, GET, POST, OPTIONS, HEAD are standard. Use other methods as is without case change. We now pass all cases from w3c-test : http://w3c-test.org/XMLHttpRequest/open-method-case-sensitive.htm. BUG=386347 TEST=http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176592

Patch Set 1 #

Total comments: 12

Patch Set 2 : Write async tests #

Total comments: 8

Patch Set 3 : update review comments and rebase #

Messages

Total messages: 27 (0 generated)
maheshkk
PTAL
6 years, 6 months ago (2014-06-18 22:06:22 UTC) #1
eseidel
What do other browsers do? It's not clear to me that this will be web-compatible.
6 years, 6 months ago (2014-06-18 23:20:18 UTC) #2
maheshkk
On 2014/06/18 23:20:18, eseidel wrote: > What do other browsers do? It's not clear to ...
6 years, 6 months ago (2014-06-18 23:40:07 UTC) #3
eseidel
I can't imagine this has a measureable impact on performance. :) I worry that if ...
6 years, 6 months ago (2014-06-19 00:11:39 UTC) #4
eseidel
lgtm OK, I see now. This is only about whether to uppercase the type name. ...
6 years, 6 months ago (2014-06-19 00:13:45 UTC) #5
maheshkk
On 2014/06/19 00:11:39, eseidel wrote: > I can't imagine this has a measureable impact on ...
6 years, 6 months ago (2014-06-19 00:19:34 UTC) #6
maheshkk
On 2014/06/19 00:13:45, eseidel wrote: > lgtm > > OK, I see now. This is ...
6 years, 6 months ago (2014-06-19 00:19:46 UTC) #7
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 6 months ago (2014-06-19 00:20:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/347653003/1
6 years, 6 months ago (2014-06-19 00:20:59 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 02:40:13 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12617)
6 years, 6 months ago (2014-06-19 02:40:14 UTC) #11
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 6 months ago (2014-06-19 02:50:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/347653003/1
6 years, 6 months ago (2014-06-19 02:50:18 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 04:08:03 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12632)
6 years, 6 months ago (2014-06-19 04:08:04 UTC) #15
sof
https://codereview.chromium.org/262173002/ wasn't carried forward for some reason, but it makes the same compatibility improvement. You ...
6 years, 6 months ago (2014-06-19 06:19:50 UTC) #16
maheshkk
Thanks for the review sof! On 2014/06/19 06:19:50, sof wrote: > https://codereview.chromium.org/262173002/ wasn't carried forward ...
6 years, 6 months ago (2014-06-19 08:54:51 UTC) #17
tyoshino (SeeGerritForStatus)
Let's update the subject and the first line of the CL description to be more ...
6 years, 6 months ago (2014-06-19 16:55:44 UTC) #18
tyoshino (SeeGerritForStatus)
Please use the interface to associate your reply with the original review comments as sof ...
6 years, 6 months ago (2014-06-19 17:03:09 UTC) #19
maheshkk
PTAL. https://codereview.chromium.org/347653003/diff/1/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html File LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html (right): https://codereview.chromium.org/347653003/diff/1/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html#newcode10 LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html:10: if (window.testRunner) On 2014/06/19 06:19:50, sof wrote: > ...
6 years, 6 months ago (2014-06-19 19:33:53 UTC) #20
maheshkk
On 2014/06/19 16:55:44, tyoshino wrote: > Let's update the subject and the first line of ...
6 years, 6 months ago (2014-06-19 19:36:36 UTC) #21
tyoshino (SeeGerritForStatus)
On 2014/06/19 19:36:36, maheshkk wrote: > How does this sound? > XMLHttpRequest must build a ...
6 years, 6 months ago (2014-06-20 02:00:45 UTC) #22
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/347653003/diff/20001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html File LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html (right): https://codereview.chromium.org/347653003/diff/20001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html#newcode12 LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html:12: window.testRunner.dumpAsText(); this is included in testharnessreport.js https://codereview.chromium.org/347653003/diff/20001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html#newcode14 LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html:14: ...
6 years, 6 months ago (2014-06-20 02:13:34 UTC) #23
maheshkk
Thanks for the review! https://codereview.chromium.org/347653003/diff/20001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html File LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html (right): https://codereview.chromium.org/347653003/diff/20001/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html#newcode12 LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-open-method-allowed.html:12: window.testRunner.dumpAsText(); On 2014/06/20 02:13:34, tyoshino ...
6 years, 6 months ago (2014-06-20 04:53:19 UTC) #24
maheshkk
The CQ bit was checked by mahesh.kk@samsung.com
6 years, 6 months ago (2014-06-20 04:53:28 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mahesh.kk@samsung.com/347653003/40001
6 years, 6 months ago (2014-06-20 04:54:30 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 06:07:07 UTC) #27
Message was sent while issue was closed.
Change committed as 176592

Powered by Google App Engine
This is Rietveld 408576698