servo/components/script
bors-servo f958dafcae Auto merge of #14865 - mrnayak:sri-fetch, r=jdm
Implement Subresource Integrity

Implemented response validation part of https://w3c.github.io/webappsec-subresource-integrity/.
Implemented step eighteen of the main fetch. If a request has integrity metadata, then following steps are performed
1) Wait for response body
2) If the response does not have a termination reason and response does not match request’s integrity metadata, set response and internalResponse to a network error.

Dependency updated: html5ever-atoms from 0.1.2 to 0.1.3. This will not completely fix #14523, It will implement changes related to response validation. Request validation algorithm implementation needs CSP.

I did not update any WPT-Test. In my local system, I found some assertion issue dependent on the order of execution of test-case. It would be helpful if someone could do "try" build on these changes to get wpt results.

r? @jdm
<!-- Please describe your changes on the following line: -->

---
<!-- 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

<!-- Either: -->
- [X] There are tests for these changes

<!-- 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/14865)
<!-- Reviewable:end -->
2017-01-07 23:14:37 -08:00
..
docs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
dom Auto merge of #14865 - mrnayak:sri-fetch, r=jdm 2017-01-07 23:14:37 -08:00
task_source Properly implement TaskSource for NetworkingTaskSource 2016-11-11 14:50:42 -08:00
body.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
build.rs
Cargo.toml Update xml5ever to 0.3.0 2017-01-07 18:10:30 +01:00
clipboard_provider.rs
CMakeLists.txt
devtools.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
document_loader.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
fetch.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
layout_wrapper.rs Only pass nodes to layout for restyling that are actually in the document. 2017-01-04 12:42:12 -05:00
lib.rs Upgrade to rustc 1.16.0-nightly (6f1ae663e 2017-01-06) 2017-01-06 17:43:31 +01:00
mem.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
network_listener.rs Separate the async bluetooth handling from networking code. 2016-12-21 14:52:39 +01:00
origin.rs Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
script_runtime.rs Implement the entry global. 2017-01-06 12:56:35 +01:00
script_thread.rs Implement browsing context discarding. 2017-01-05 21:12:57 +00:00
serviceworker_manager.rs Removed util. 2016-12-14 18:04:37 -06:00
serviceworkerjob.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
stylesheet_loader.rs Implement Subresource Integrity 2017-01-08 08:52:18 +05:30
test.rs Remove generation, remove filter pop, and add size tests. 2016-12-22 11:09:55 -08:00
textinput.rs Return KeyReaction::Nothing for a Tab event 2016-11-12 15:49:00 +01:00
timers.rs Remove some unsound JSVal handling in JsTimerTask::invoke. 2017-01-05 17:49:01 +01:00
unpremultiplytable.rs
webdriver_handlers.rs Refactor and simplify 'set cookies' operations on resource thread. 2016-12-15 15:34:04 -05:00