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

Issue 609733004: FormData allow empty names to append (Closed)

Created:
6 years, 2 months ago by prashant.hiremath
Modified:
6 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, arv (Not doing code reviews)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

FormData allow empty names to append This CL allows FormData submitted with empty name field to be appended. According to xhr spec https://xhr.spec.whatwg.org/#interface-formdata name field should be appended as it is i.e without checking whether it is empty. Firefox and IE behaves according to spec and allow empty names field to be appended. This CL makes Blink to be compatible with spec and other browsers. BUG=415804 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183660

Patch Set 1 #

Total comments: 8

Patch Set 2 : Modified LayoutTest as per review comment #

Total comments: 10

Patch Set 3 : updated as per review comment #

Total comments: 4

Patch Set 4 : Added issue title in description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
A LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/html/DOMFormData.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 38 (7 generated)
prashant.hiremath
Please Review
6 years, 2 months ago (2014-09-26 12:19:19 UTC) #2
jsbell
lgtm with a suggestion Were you able to run this exact test in Firefox and ...
6 years, 2 months ago (2014-09-26 16:19:19 UTC) #4
jsbell
Oh, hey, that WebKit patch came from a Chromium contributor. @jianli - any comment?
6 years, 2 months ago (2014-09-26 16:21:19 UTC) #6
sof
On 2014/09/26 16:19:19, jsbell wrote: > lgtm with a suggestion > > Were you able ...
6 years, 2 months ago (2014-09-26 18:02:48 UTC) #7
prashant.hiremath
@jsbell, I have tested the sample code which you have added in https://code.google.com/p/chromium/issues/detail?id=415804 in both ...
6 years, 2 months ago (2014-09-26 18:08:12 UTC) #8
jsbell
On 2014/09/26 18:08:12, prashant.hiremath wrote: > One samall doubt, Do you mean to write helper ...
6 years, 2 months ago (2014-09-26 18:10:41 UTC) #9
jianli
The spec (https://xhr.spec.whatwg.org/#interface-formdata) does not mention explicitly how the empty name should be treated. The ...
6 years, 2 months ago (2014-09-26 21:32:04 UTC) #10
jsbell
On 2014/09/26 21:32:04, jianli wrote: > The spec (https://xhr.spec.whatwg.org/#interface-formdata) does not mention > explicitly how ...
6 years, 2 months ago (2014-09-26 22:50:28 UTC) #11
sof
https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html File LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html (right): https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html#newcode13 LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html:13: xhrString.open('POST', 'http://127.0.0.1:8000/xmlhttprequest/resources/post-echo.cgi', false); Could you make this be async ...
6 years, 2 months ago (2014-10-06 09:12:34 UTC) #12
prashant.hiremath
https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html File LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html (right): https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html#newcode13 LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html:13: xhrString.open('POST', 'http://127.0.0.1:8000/xmlhttprequest/resources/post-echo.cgi', false); On 2014/10/06 09:12:34, sof wrote: > ...
6 years, 2 months ago (2014-10-06 12:31:59 UTC) #13
sof
https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html File LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html (right): https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html#newcode13 LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html:13: xhrString.open('POST', 'http://127.0.0.1:8000/xmlhttprequest/resources/post-echo.cgi', false); On 2014/10/06 12:31:59, prashant.hiremath wrote: > ...
6 years, 2 months ago (2014-10-06 14:46:48 UTC) #14
sof
On 2014/09/26 22:50:28, jsbell wrote: > On 2014/09/26 21:32:04, jianli wrote: > > The spec ...
6 years, 2 months ago (2014-10-07 08:59:41 UTC) #15
jsbell
On 2014/10/07 08:59:41, sof wrote: > We can wait, but an alternative is to align ...
6 years, 2 months ago (2014-10-07 17:03:45 UTC) #16
sof
Cc: +arv (just in case he missed it.)
6 years, 2 months ago (2014-10-08 09:40:23 UTC) #17
arv (Not doing code reviews)
LGTM Less special cases are an improvement.
6 years, 2 months ago (2014-10-08 14:05:27 UTC) #19
prashant.hiremath
PTAL
6 years, 2 months ago (2014-10-09 10:53:38 UTC) #20
prashant.hiremath
https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html File LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html (right): https://codereview.chromium.org/609733004/diff/1/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html#newcode13 LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html:13: xhrString.open('POST', 'http://127.0.0.1:8000/xmlhttprequest/resources/post-echo.cgi', false); On 2014/10/06 14:46:48, sof wrote: > ...
6 years, 2 months ago (2014-10-09 10:58:45 UTC) #21
sof
https://codereview.chromium.org/609733004/diff/20001/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html File LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html (right): https://codereview.chromium.org/609733004/diff/20001/LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html#newcode6 LayoutTests/http/tests/local/formdata/send-form-data-with-empty-name.html:6: description("Test that we can send empty name in Formdata."); ...
6 years, 2 months ago (2014-10-10 06:27:11 UTC) #22
sof
On 2014/10/08 14:05:27, arv wrote: > LGTM > > Less special cases are an improvement. ...
6 years, 2 months ago (2014-10-10 06:28:05 UTC) #23
sof
Commit message titles that summarize the change made, are preferable. So, if you could change ...
6 years, 2 months ago (2014-10-10 06:37:13 UTC) #24
prashant.hiremath
PTAL
6 years, 2 months ago (2014-10-10 12:36:35 UTC) #25
sof
Could you add the title to the description also, e.g., FormData allow empty names to ...
6 years, 2 months ago (2014-10-10 12:43:39 UTC) #26
prashant.hiremath
Added issue title in Description, PTAL.
6 years, 2 months ago (2014-10-13 05:23:06 UTC) #27
sof
On 2014/10/13 05:23:06, prashant.hiremath wrote: > Added issue title in Description, PTAL. Thanks for iterating ...
6 years, 2 months ago (2014-10-13 08:43:13 UTC) #28
prashant.hiremath
On 2014/10/13 08:43:13, sof wrote: > On 2014/10/13 05:23:06, prashant.hiremath wrote: > > Added issue ...
6 years, 2 months ago (2014-10-13 09:51:48 UTC) #29
sof
On 2014/10/13 09:51:48, prashant.hiremath wrote: > On 2014/10/13 08:43:13, sof wrote: > > On 2014/10/13 ...
6 years, 2 months ago (2014-10-13 17:41:08 UTC) #30
jsbell
Thanks for driving resolution of this on the standards front, sof@
6 years, 2 months ago (2014-10-13 17:42:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/609733004/130001
6 years, 2 months ago (2014-10-14 02:20:11 UTC) #33
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 2 months ago (2014-10-14 08:20:47 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/609733004/130001
6 years, 2 months ago (2014-10-14 09:03:22 UTC) #37
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 09:48:52 UTC) #38
Message was sent while issue was closed.
Committed patchset #4 (id:130001) as 183660

Powered by Google App Engine
This is Rietveld 408576698