servo/components
bors-servo 144b980df2 Auto merge of #12679 - johannhof:image-inject, r=Manishearth
Prevent injection vulnerability in image page

This is taking up nox' suggestion from #12542 and creates an img element using Rust code instead of escaping the URL. I will look at the neterror.html URL strings separately, we might do those in a similar way.

To reproduce, visit e.g. the following URL with your vulnerable Servo:
```
https://servo.org/screenshot.png?'onload='document.body.innerHTML=`hacked`'
```

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #12542

- [x] These changes do not require tests because this is just fixing up existing behavior and I'm not sure how to test it

r?@jdm

<!-- 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/12679)
<!-- Reviewable:end -->
2016-08-01 13:27:46 -05:00
..
canvas Remove dependency on util::opts from canvas crate 2016-07-20 07:38:18 +00:00
canvas_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
compositing Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwalton 2016-07-27 17:56:26 -05:00
constellation Auto merge of #12637 - asajeffrey:constellation-use-reentrant-logging-mutex, r=emilio 2016-07-29 12:49:08 -05:00
devtools Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
devtools_traits Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
gfx Auto merge of #11850 - splav:box-shadow#11662, r=glennw 2016-07-27 18:54:32 -05:00
gfx_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
layout Remove unused inline_size_of_preceding_{left,right}_floats fields from BlockFlow. 2016-08-01 13:56:24 +02:00
layout_thread Auto merge of #12615 - nox:die-opts-die, r=Ms2ger 2016-07-27 22:36:53 -05:00
layout_traits Hoist retrieval of layout_threads from opts into Constellation 2016-07-24 21:45:31 +02:00
msg Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
net Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
net_traits Added devtools support to fetch for XHR + Manish's XHR ident fix 2016-07-29 11:20:38 +01:00
plugins Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
profile Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
profile_traits Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
range Update Rust to 1.12.0-nightly (9316ae515 2016-07-24) 2016-07-26 19:35:51 +02:00
script Auto merge of #12679 - johannhof:image-inject, r=Manishearth 2016-08-01 13:27:46 -05:00
script_layout_interface Hoist retrieval of layout_threads from opts into Constellation 2016-07-24 21:45:31 +02:00
script_traits Auto merge of #12563 - emilio:stylo, r=bholley,jdm,pcwalton 2016-07-27 17:56:26 -05:00
servo Update png. 2016-08-01 14:03:09 +02:00
style style: Split values.rs into specified/computed module files 2016-07-29 18:43:42 +05:30
style_traits All our Cargo.toml files should contain an MPL-2.0 license field. 2016-07-14 10:26:34 -05:00
util Replaced mutex in constellation logging by a reentrant mutex. 2016-07-29 09:44:45 -05:00
webdriver_server Auto merge of #11791 - craftytrickster:11712/pipeline-lookup, r=asajeffrey 2016-07-26 00:44:28 -05:00