servo/components/net
bors-servo dd34b2a335 Auto merge of #14059 - mrnayak:refPolicy, r=nox
Network Security : Implement StrictOrigin and StrictOriginWhenCrossOr…

This pull request contains commit implementing initial steps for Improving Network Security project. As part of initial steps referer policy enums for strict-origin and strict-origin-when-cross-origin have been added to [hyper](https://github.com/hyperium/hyper/pull/943). Unit tests and additional logic has been added to handle these policies. Since enum changes are available on hyper version 0.9.11. We had to update hyper version to 0.9.11.

Hyper 0.9.11 depends on num_cpus 1.1.0. To avoid different version of num_cpus. We have updated rayon version from 0.4.0 to 0.4.3. Cargo.toml of util, style, geckolib, stylo component has been updated to use num_cpus version 1.1.0 instead of 0.2.2.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

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

…igin

Referer policy strict-origin and strict-origin-when-cross-origin changes have been implemented. Relevant unit test cases have been added. Enum for RefererPolicy has been added to hyper codebase and v 0.9.11 of hyper contains these changes.

This commit also contains changes related to upgrade of hyper from v0.9.10 to v0.9.11. Other dependencies changed are rayon, utils, num_cpus.

<!-- 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/14059)
<!-- Reviewable:end -->
2016-11-07 04:37:35 -06:00
..
fetch Move ReferrerPolicy to net_traits. 2016-11-04 10:43:37 +01:00
about_loader.rs Reorder use statements 2016-09-09 04:55:19 +02:00
blob_loader.rs Implement blob url support in the fetch stack. 2016-10-14 14:18:03 +02:00
Cargo.toml Split the bluetooth code out from the net crates. 2016-11-03 16:45:07 +01:00
chrome_loader.rs Use Result instead of panicking when the resource dir can't be found 2016-07-21 12:07:25 +05:30
connector.rs Use Result instead of panicking when the resource dir can't be found 2016-07-21 12:07:25 +05:30
content_blocker.rs Read the content blocking rules and make them available to the HTTP loader. 2016-05-30 10:54:52 +02:00
cookie.rs Moved pub_domains to net_traits and did a spring clean. 2016-09-29 17:28:47 -05:00
cookie_storage.rs Use common cookie struct add cookie webdriver cmds 2016-06-25 22:24:35 +00:00
data_loader.rs Reorder use statements 2016-09-09 04:55:19 +02:00
file_loader.rs Move ReferrerPolicy to net_traits. 2016-11-04 10:43:37 +01:00
filemanager_thread.rs Stop spawning threads unnecessarily in FileManager. 2016-10-14 14:12:24 +02:00
hsts.rs Report use statements that use {} with only one entry 2016-05-27 10:18:44 +01:00
http_loader.rs Remove return and resolve merge conflicts 2016-11-04 13:27:08 -04:00
image_cache_thread.rs Move ResponseAction to the image cache. 2016-11-02 16:15:25 +01:00
lib.rs Privatize the chrome_loader module. 2016-11-06 12:18:40 +01:00
mime_classifier.rs Auto merge of #13411 - frewsxcv:mime, r=jdm 2016-10-08 15:40:47 -05:00
resource_thread.rs Remove ProgressSender::Listener. 2016-11-02 16:15:23 +01:00
storage_thread.rs Remove use of util::opts from storage_thread 2016-07-27 10:25:48 +02:00
websocket_loader.rs Reorder use statements 2016-09-09 04:55:19 +02:00