Skip to content

Refactor FormData code to match updated spec - #9049

Merged
bors-servo merged 1 commit into
servo:masterfrom
KiChjang:form-data-refactor
Jan 1, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
KiChjang:form-data-refactor

Conversation

@KiChjang

Copy link
Copy Markdown
Contributor

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 22, 2015
@KiChjang

Copy link
Copy Markdown
Contributor Author

Haven't written tests for formdata.set() yet.

@KiChjang

Copy link
Copy Markdown
Contributor Author

Tests for formdata.set() has been committed, I think this is ready to be reviewed.

@eefriedman

Copy link
Copy Markdown
Contributor

Review status: 0 of 14 files reviewed at latest revision, 3 unresolved discussions.


components/script/dom/formdata.rs, line 129 [r2] (raw file):
is_none() then unwrap() is an anti-pattern. Use match instead.


components/script/dom/webidls/FormData.webidl, line 22 [r2] (raw file):
Hmm... implementing iterable is going to be kind of awkward with the hashtable representation. Not something that needs to be fixed in this patch.


tests/wpt/metadata/XMLHttpRequest/formdata-set.htm.ini, line 5 [r2] (raw file):
Do you know why these tests are failing? They don't obviously depend on any unimplemented functions.


Comments from the review on Reviewable.io

@KiChjang

Copy link
Copy Markdown
Contributor Author

Review status: 0 of 14 files reviewed at latest revision, 1 unresolved discussion.


tests/wpt/metadata/XMLHttpRequest/formdata-set.htm.ini, line 5 [r2] (raw file):
testFormDataSetEmptyBlob actually does depend on the constructor for File objects, which we don't support yet.

As for "Passing a String object to FormData.set should work", it depends on the implementation of XHR responseText and onload.


Comments from the review on Reviewable.io

@eefriedman

Copy link
Copy Markdown
Contributor

r=me after squash.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #8109) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Dec 29, 2015
@jdm jdm added S-needs-squash Some (or all) of the commits in the PR should be combined. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 29, 2015
@KiChjang
KiChjang force-pushed the form-data-refactor branch from cfaf32a to b511ec6 Compare January 1, 2016 08:46
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 1, 2016
@KiChjang

KiChjang commented Jan 1, 2016

Copy link
Copy Markdown
Contributor Author

r? @eefriedman

@KiChjang KiChjang removed S-needs-rebase There are merge conflict errors. S-needs-squash Some (or all) of the commits in the PR should be combined. labels Jan 1, 2016
@KiChjang
KiChjang force-pushed the form-data-refactor branch from b511ec6 to 7001583 Compare January 1, 2016 13:35
Use Atoms instead of Strings as keys
@jdm

jdm commented Jan 1, 2016

Copy link
Copy Markdown
Member

@bors-servo: r=eefriedman

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7001583 has been approved by eefriedman

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7001583 with merge ade750d...

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 1, 2016
bors-servo pushed a commit that referenced this pull request Jan 1, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 1, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 1, 2016
@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Jan 1, 2016
@jdm

jdm commented Jan 1, 2016

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7001583 with merge 7a5522a...

bors-servo pushed a commit that referenced this pull request Jan 1, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Jan 1, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 7001583 into servo:master Jan 1, 2016
@KiChjang
KiChjang deleted the form-data-refactor branch March 18, 2016 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants