Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add value sanitization for input[type=email] #23472

Merged
merged 1 commit into from May 30, 2019
Merged

Conversation

@ffwff
Copy link
Contributor

ffwff commented May 29, 2019

Add value sanitization for input[type=email] as per the HTML specification.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix part of #21810 (GitHub issue number if applicable)
  • There are tests for these changes

This change is Reviewable

@highfive
Copy link

highfive commented May 29, 2019

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @asajeffrey (or someone else) soon.

@highfive
Copy link

highfive commented May 29, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlinputelement.rs
  • @KiChjang: components/script/dom/htmlinputelement.rs
@highfive
Copy link

highfive commented May 29, 2019

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@CYBAI
Copy link
Collaborator

CYBAI commented May 29, 2019

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2019

Trying commit 5e4a8ff with merge bf0f2a8...

bors-servo added a commit that referenced this pull request May 29, 2019
Add value sanitization for input[type=email]

<!-- Please describe your changes on the following line: -->
Add value sanitization for input[type=email] as per the [HTML specification](https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type=email)).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21810 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23472)
<!-- Reviewable:end -->
@CYBAI
Copy link
Collaborator

CYBAI commented May 29, 2019

This PR will only fix the sanitization of input[type=email] so I updated the PR description to These changes fix part of #21810..

@bors-servo
Copy link
Contributor

bors-servo commented May 29, 2019

💔 Test failed - linux-rel-wpt

Copy link
Collaborator

CYBAI left a comment

I found one nit and please squash all commits into one, thanks! :)

components/script/dom/htmlinputelement.rs Outdated Show resolved Hide resolved
@jdm jdm added the S-needs-squash label May 29, 2019
Handle "Multiple" attribute for email value sanitization

Fix code formatting

Tests for email value sanitization should pass

Make failing wpt tests pass

Change new_value => sanitized
@ffwff ffwff force-pushed the ffwff:master branch from 2942bce to 3508140 May 29, 2019
@CYBAI
CYBAI approved these changes May 30, 2019
@jdm
Copy link
Member

jdm commented May 30, 2019

@bors-servo r=cybai

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2019

📌 Commit 3508140 has been approved by cybai

@highfive highfive assigned CYBAI and unassigned asajeffrey May 30, 2019
bors-servo added a commit that referenced this pull request May 30, 2019
Add value sanitization for input[type=email]

<!-- Please describe your changes on the following line: -->
Add value sanitization for input[type=email] as per the [HTML specification](https://html.spec.whatwg.org/multipage/input.html#e-mail-state-(type=email)).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix part of #21810 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23472)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2019

Testing commit 3508140 with merge 69eacfa...

@bors-servo
Copy link
Contributor

bors-servo commented May 30, 2019

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: cybai
Pushing 69eacfa to master...

@bors-servo bors-servo merged commit 3508140 into servo:master May 30, 2019
3 of 4 checks passed
3 of 4 checks passed
Travis CI - Pull Request Build Failed
Details
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@KiChjang KiChjang mentioned this pull request May 30, 2019
1 of 3 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.