servo/components/net
bors-servo 75548f40c6
Auto merge of #24340 - jdm:image-cache-cors, r=Manishearth
Allow using CORS filtered image responses as WebGL textures

More specifically, this makes the "is this image same origin?" check consider the CORS status of the original response, rather than relying on an overly-strict "is this image's response's URL same-origin with a particular global?" check. To do this, we make the image cache double keyed based on the requested URL as well as the requesting origin, and store the CORS status of the eventual response with the final image that eventually gets sent to the HTMLImageElement consumer.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24330 and fix #24368
- [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/24340)
<!-- Reviewable:end -->
2019-10-07 18:39:36 -04:00
..
fetch Move ResourceFetchTiming into Arc 2019-09-18 11:54:28 -04:00
tests Move ResourceFetchTiming into Arc 2019-09-18 11:54:28 -04:00
Cargo.toml Remove unused dependencies 2019-10-01 21:15:53 +09:00
connector.rs Disable TLS 1.0 and 1.1 2019-05-10 14:53:32 +02:00
cookie.rs Add webdriver deletecookies function 2019-04-19 13:15:50 +05:30
cookie_storage.rs Add webdriver deletecookies function 2019-04-19 13:15:50 +05:30
data_loader.rs Update to url 2.0 2019-08-17 10:03:44 +02:00
decoder.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
filemanager_thread.rs Deduplicate idna, log, mime, mime_guess, percent-encoding, unicase, url, ws 2019-08-19 20:09:20 +02:00
hosts.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
hsts.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
http_cache.rs Auto merge of #24370 - jdm:cache-crossorigin-test, r=gterzian 2019-10-07 11:28:53 -04:00
http_loader.rs Add useful debug output for HTTP response and image cache. 2019-10-04 15:08:40 -04:00
image_cache.rs Add useful debug output for HTTP response and image cache. 2019-10-04 15:08:40 -04:00
lib.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
mime_classifier.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
resource_thread.rs Move ResourceFetchTiming into Arc 2019-09-18 11:54:28 -04:00
storage_thread.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
subresource_integrity.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
websocket_loader.rs Upgrade headers, headers-core, and hyper_serde. 2019-06-13 11:08:16 -04:00