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

Issue 227483008: Support FormData on WorkerGlobalScope. (Closed)

Created:
6 years, 8 months ago by sof
Modified:
6 years, 8 months ago
CC:
blink-reviews, watchdog-blink-watchlist_google.com, dglazkov+blink, arv+blink, adamk+blink_chromium.org, Inactive, haraken
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Support FormData on WorkerGlobalScope. The spec defines FormData as being provided in worker contexts, http://www.w3.org/TR/XMLHttpRequest/#interface-formdata http://xhr.spec.whatwg.org/#interface-formdata Follow suit and provide an argument-less FormData constructor and the interface object on WorkerGlobalScope. R=arv@chromium.org,nbarth@chromium.org BUG=360546 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171294

Patch Set 1 #

Total comments: 6

Patch Set 2 : Support optional, non-default constructor arguments. #

Patch Set 3 : Update test expectations #

Total comments: 13

Patch Set 4 : Support non-default optionals over named constructors #

Total comments: 13

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -120 lines) Patch
A LayoutTests/fast/workers/resources/worker-formdata.js View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A + LayoutTests/fast/workers/worker-formdata.html View 1 chunk +3 lines, -1 line 0 comments Download
A LayoutTests/fast/workers/worker-formdata-expected.txt View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/post-formdata.html View 1 chunk +1 line, -107 lines 0 comments Download
A + LayoutTests/http/tests/xmlhttprequest/resources/post-formdata.js View 1 3 chunks +2 lines, -6 lines 0 comments Download
A + LayoutTests/http/tests/xmlhttprequest/workers/post-formdata.html View 1 chunk +1 line, -2 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/workers/post-formdata-expected.txt View 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/xmlhttprequest/workers/resources/post-formdata-worker.js View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/virtual/stable/webexposed/global-constructors-listing-dedicated-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/virtual/stable/webexposed/global-constructors-listing-shared-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-dedicated-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-shared-worker-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/DOMFormData.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/FormData.idl View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
sof
Please take a look. An open question here is if http://www.chromium.org/blink#trivial-changes applies wrt http://www.chromium.org/blink#TOC-Web-Platform-Changes:-Process
6 years, 8 months ago (2014-04-07 13:03:42 UTC) #1
arv (Not doing code reviews)
LGTM with nits https://codereview.chromium.org/227483008/diff/1/LayoutTests/fast/workers/resources/worker-formdata.js File LayoutTests/fast/workers/resources/worker-formdata.js (right): https://codereview.chromium.org/227483008/diff/1/LayoutTests/fast/workers/resources/worker-formdata.js#newcode12 LayoutTests/fast/workers/resources/worker-formdata.js:12: shouldBeTrue("'append' in formData"); I always prefer ...
6 years, 8 months ago (2014-04-07 21:16:38 UTC) #2
sof
https://codereview.chromium.org/227483008/diff/1/Source/core/html/FormData.idl File Source/core/html/FormData.idl (right): https://codereview.chromium.org/227483008/diff/1/Source/core/html/FormData.idl#newcode32 Source/core/html/FormData.idl:32: Constructor([Default=Undefined] optional HTMLFormElement form), On 2014/04/07 21:16:38, arv wrote: ...
6 years, 8 months ago (2014-04-08 15:10:53 UTC) #3
sof
Many thanks for the review. The handling of optional, non-default constructor arguments wasn't quite in ...
6 years, 8 months ago (2014-04-08 19:36:50 UTC) #4
Nils Barth (inactive)
Various suggestions for Python + Jinja; semantics seem fine. https://codereview.chromium.org/227483008/diff/40001/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/227483008/diff/40001/Source/bindings/scripts/v8_interface.py#newcode491 Source/bindings/scripts/v8_interface.py:491: ...
6 years, 8 months ago (2014-04-09 02:00:27 UTC) #5
Nils Barth (inactive)
One other note: shouldn't you be *adding* a test case, not replacing one? https://codereview.chromium.org/227483008/diff/40001/Source/bindings/tests/idls/TestInterfaceConstructor2.idl File ...
6 years, 8 months ago (2014-04-09 02:12:03 UTC) #6
sof
Not to make named constructors feel left out, I also added support for these. Please ...
6 years, 8 months ago (2014-04-09 07:31:59 UTC) #7
Nils Barth (inactive)
On 2014/04/09 07:31:59, sof wrote: > Not to make named constructors feel left out, I ...
6 years, 8 months ago (2014-04-09 08:34:33 UTC) #8
Nils Barth (inactive)
Thanks for revisions! A few nits, otherwise LGTM for bindings/. https://codereview.chromium.org/227483008/diff/40001/Source/bindings/scripts/v8_methods.py File Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/227483008/diff/40001/Source/bindings/scripts/v8_methods.py#newcode183 ...
6 years, 8 months ago (2014-04-09 09:36:38 UTC) #9
sof
On 2014/04/09 08:34:33, Nils Barth wrote: > On 2014/04/09 07:31:59, sof wrote: > > Not ...
6 years, 8 months ago (2014-04-09 09:40:47 UTC) #10
Nils Barth (inactive)
On 2014/04/09 09:40:47, sof wrote: > ok, let's keep them separate - split out the ...
6 years, 8 months ago (2014-04-09 10:00:08 UTC) #11
sof
Thanks again; followed up on these on https://codereview.chromium.org/229373006/ (Will rebase this CL once it is ...
6 years, 8 months ago (2014-04-09 10:53:15 UTC) #12
Nils Barth (inactive)
Thanks for revisions (in separate CL)! https://codereview.chromium.org/227483008/diff/60001/Source/bindings/scripts/v8_methods.py File Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/227483008/diff/60001/Source/bindings/scripts/v8_methods.py#newcode209 Source/bindings/scripts/v8_methods.py:209: this_union_arguments = method.idl_type ...
6 years, 8 months ago (2014-04-10 01:55:59 UTC) #13
Nils Barth (inactive)
On 2014/04/09 10:53:15, sof wrote: > (Will rebase this CL once it is available. We're ...
6 years, 8 months ago (2014-04-10 02:16:22 UTC) #14
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 8 months ago (2014-04-10 16:24:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/227483008/80001
6 years, 8 months ago (2014-04-10 16:24:09 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-10 17:00:15 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-10 17:00:15 UTC) #18
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 8 months ago (2014-04-10 17:56:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/227483008/80001
6 years, 8 months ago (2014-04-10 17:56:57 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 18:27:00 UTC) #21
Message was sent while issue was closed.
Change committed as 171294

Powered by Google App Engine
This is Rietveld 408576698