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

Moved pub_domains to net_traits and did a spring clean. #13517

Merged
merged 1 commit into from Oct 1, 2016

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Sep 29, 2016

Moved the pub_domains module from net into net_traits, so it can be used by crates which don't depend on net (in particular constellation, which can use the crate for testing similar-origin).

I also did quite a bit of tidying up, the functions now do no heap allocation, previously there was quite a bit of String allocation going on.

This is the next step to fixing #633. cc @jdm


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes (new unit tests)

This change is Reviewable

@highfive
Copy link

highfive commented Sep 29, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/net_traits/pub_domains.rs, components/net_traits/pub_domains.rs, components/net/cookie.rs, components/net/lib.rs, components/net_traits/lib.rs, components/net_traits/lib.rs, components/net/pub_domains.rs
@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 30, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2016

📌 Commit a74fe58 has been approved by mbrubeck

@asajeffrey
Copy link
Member Author

asajeffrey commented Sep 30, 2016

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Oct 1, 2016

Testing commit a74fe58 with merge 128a61e...

bors-servo added a commit that referenced this pull request Oct 1, 2016
Moved pub_domains to net_traits and did a spring clean.

<!-- Please describe your changes on the following line: -->

Moved the `pub_domains` module from `net` into `net_traits`, so it can be used by crates which don't depend on `net` (in particular `constellation`, which can use the crate for testing similar-origin).

I also did quite a bit of tidying up, the functions now do no heap allocation, previously there was quite a bit of String allocation going on.

This is the next step to fixing #633. cc @jdm

---
<!-- 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] There are tests for these changes (new unit tests)

<!-- 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/13517)
<!-- Reviewable:end -->
@bors-servo bors-servo mentioned this pull request Oct 1, 2016
2 of 5 tasks complete
@bors-servo
Copy link
Contributor

bors-servo commented Oct 1, 2016

@bors-servo bors-servo merged commit a74fe58 into servo:master Oct 1, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
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

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