servo/components/net
bors-servo 1071c3339f Auto merge of #16126 - ferjm:issue-14520-block-media-csv, r=nox
Block scripts with text/csv, audio/*, video/* and image/* mime types

This patch implements step 12 of the Main Fetch section of the Fetch API standard. It blocks the load of scripts with `text/csv`, `audio/*`, `video/*` and `image/*` mime types.

Credit for the logic of `should_block_mime_type` function should go to the author of #14770.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14520
- [X] There are tests for these changes

<!-- 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/16126)
<!-- Reviewable:end -->
2017-04-05 02:34:27 -05:00
..
fetch Auto merge of #16126 - ferjm:issue-14520-block-media-csv, r=nox 2017-04-05 02:34:27 -05:00
blob_loader.rs Remove unused part of the return value of parse_blob_url(). 2017-01-30 15:16:27 +01:00
Cargo.toml Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
chrome_loader.rs Removed util. 2016-12-14 18:04:37 -06:00
connector.rs Introduce create_ssl_client 2017-04-02 15:27:40 +02:00
cookie.rs Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
cookie_storage.rs Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
data_loader.rs Replace use of rustc_serialize::base64 by base64 2017-03-26 14:15:31 +02:00
filemanager_thread.rs Disabled tinyfiledialogs when running headless. 2017-03-16 08:48:33 -05:00
hsts.rs Use serde_json to persist cookies in the net crate 2017-02-22 12:33:10 +01:00
http_loader.rs Introduce http_loader::set_default_accept 2017-04-04 13:17:18 +02:00
image_cache.rs Remove useless ImageDecoderRunnable struct 2017-03-27 20:44:04 +02:00
lib.rs Move the HTTP connector to FetchContext 2017-04-03 12:47:33 +02:00
mime_classifier.rs Auto merge of #13411 - frewsxcv:mime, r=jdm 2016-10-08 15:40:47 -05:00
resource_thread.rs Don't share the SSL client between the private and public groups 2017-04-03 17:37:37 +02:00
storage_thread.rs Removed util. 2016-12-14 18:04:37 -06:00
subresource_integrity.rs Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
websocket_loader.rs Use set_default_accept in websocket_loader 2017-04-04 13:17:19 +02:00