diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-04-05 02:34:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-05 02:34:27 -0500 |
commit | 1071c3339fd858014382b4e9938584279555b5ec (patch) | |
tree | 6fb02e2afb6905f0170d6304fd057a4d9acff302 /components/style/gecko_string_cache/mod.rs | |
parent | 8e2a1477ae800b86eae45fc9c6daf85615100854 (diff) | |
parent | 29a56c4d1a0a19166320ef47a6cdcf20524d8272 (diff) | |
download | servo-1071c3339fd858014382b4e9938584279555b5ec.tar.gz servo-1071c3339fd858014382b4e9938584279555b5ec.zip |
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 -->
Diffstat (limited to 'components/style/gecko_string_cache/mod.rs')
0 files changed, 0 insertions, 0 deletions