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

Fix step 31 of the Request constructor. #12851

Merged
merged 1 commit into from Aug 13, 2016
Merged

Conversation

jeenalee
Copy link
Contributor

@jeenalee jeenalee commented Aug 13, 2016

This PR fixes the step 31 of the Request constructor to fill Request's Headers object and rethrow any exceptions. Additionally, it removes unnecessary line breaks, comments, and redundant function.


  • There are tests for these changes OR
  • These changes do not require tests because this PR does not change the behavior of the Request constructor.

In addition to fixing step 31 of the Request constructor, this
commit also:

  • remove get_current_url function, and use net_request::request's
    built-in current_url method
  • clean up unnecessary line breaks and comments

This change is Reviewable

In addition to fixing step 31 of the Request constructor, this
commit also:
- remove get_current_url function, and use net_request::request's
built-in current_url method
- clean up unnecessary line breaks and comments
@highfive
Copy link

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/request.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 13, 2016
@highfive
Copy link

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@jeenalee
Copy link
Contributor Author

r? @nox

@highfive highfive assigned nox and unassigned wafflespeanut Aug 13, 2016
@nox
Copy link
Contributor

nox commented Aug 13, 2016

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 2693027 has been approved by nox

@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 Aug 13, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit 2693027 with merge 8828728...

bors-servo pushed a commit that referenced this pull request Aug 13, 2016
Fix step 31 of the Request constructor.

<!-- Please describe your changes on the following line: -->
This PR fixes the step 31 of the Request constructor to fill Request's Headers object and rethrow any exceptions. Additionally, it removes unnecessary line breaks, comments, and redundant function.

---
<!-- 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 #12845 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because this PR does not change the behavior of the Request constructor.

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

In addition to fixing step 31 of the Request constructor, this
commit also:
- remove `get_current_url` function, and use `net_request::request`'s
built-in `current_url` method
- clean up unnecessary line breaks and comments

<!-- 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/12851)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - mac-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 13, 2016
@highfive
Copy link

  ▶ TIMEOUT [expected PASS] /_mozilla/css/iframe/hide_layers2.html

@nox
Copy link
Contributor

nox commented Aug 13, 2016

@bors-servo retry #8769

@bors-servo
Copy link
Contributor

⚡ Previous build results for arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, windows-dev are reusable. Rebuilding only mac-rel-wpt...

@bors-servo
Copy link
Contributor

☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev

@bors-servo bors-servo merged commit 2693027 into servo:master Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-tests-failed The changes caused existing tests to fail.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix step 31 of the Request constructor
5 participants