servo/components
bors-servo 362a0d5e14
Auto merge of #22340 - jdm:reload, r=KiChjang
Don't filter the bodies of cross-origin cached responses

There are a few issues at play in #22330:
* loading https://servo.org followed by http://servo.org retrieves the second response from the cache (since http://servo.org is upgraded due to HSTS)
* since the request URL differs from the request origin, the response is filtered according to the rules of CORS
* since the response body is already present, there's no async response channel to wait on in `wait_for_response`
* a filtered response stores an empty response, while the real response sits inside the inner response

The effect of this combination was that the constellation's fetch listener would receive the response headers, followed immediately by a response EOF. That is no longer the case, since `wait_for_response` correctly transfers the underlying response body to the network listener.

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

<!-- 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/22340)
<!-- Reviewable:end -->
2018-12-01 00:40:13 -05:00
..
allocator Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
atoms Auto merge of #22224 - pyfisch:composition-webdriver, r=nox 2018-11-20 03:32:25 -05:00
background_hang_monitor Update MPL license to https (part 5) 2018-11-27 19:09:17 +01:00
bluetooth Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bluetooth_traits Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
canvas Update webrender 2018-11-27 17:33:13 -08:00
canvas_traits Make HTMLCanvasElement::fetch_all_data return a shared memory blob 2018-11-21 12:53:50 +01:00
compositing Update webrender 2018-11-27 17:33:13 -08:00
config Update env_logger to 0.6 2018-11-29 12:40:24 +01:00
constellation introduce a background-hang-monitor: 2018-11-26 14:15:33 +08:00
debugger Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
deny_public_fields Update syn and related dependencies 2018-11-30 17:48:41 +01:00
devtools Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
devtools_traits Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
dom_struct Update syn and related dependencies 2018-11-30 17:48:41 +01:00
domobject_derive Update syn and related dependencies 2018-11-30 17:48:41 +01:00
embedder_traits Update webrender 2018-11-27 17:33:13 -08:00
fallible Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
geometry Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
gfx Auto merge of #22221 - Eijebong:random-depup, r=nox 2018-11-27 11:27:54 -05:00
gfx_traits Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
hashglobe cargo fix --edition 2018-11-10 17:47:28 +01:00
jstraceable_derive Update syn and related dependencies 2018-11-30 17:48:41 +01:00
layout Update webrender 2018-11-27 17:33:13 -08:00
layout_thread introduce a background-hang-monitor: 2018-11-26 14:15:33 +08:00
layout_traits introduce a background-hang-monitor: 2018-11-26 14:15:33 +08:00
malloc_size_of Update mozjs and enable 'init_once' feature for Android 2018-11-19 09:11:54 +01:00
malloc_size_of_derive Update syn and related dependencies 2018-11-30 17:48:41 +01:00
metrics Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
msg introduce a background-hang-monitor: 2018-11-26 14:15:33 +08:00
net net: Wait for underlying response body of filtered responses. 2018-11-30 19:03:47 -05:00
net_traits Change Response's statusText default value from 'Ok' to an empty string 2018-11-27 19:26:40 +02:00
pixels Call rgba8_byte_swap_colors_inplace on the WebGL thread 2018-11-20 10:14:52 +01:00
profile Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
profile_traits Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
rand Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
range Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
remutex Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
script Auto merge of #22336 - jdm:image-reload, r=Manishearth 2018-11-30 22:38:49 -05:00
script_layout_interface introduce a background-hang-monitor: 2018-11-26 14:15:33 +08:00
script_plugins Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
script_traits Update webrender 2018-11-27 17:33:13 -08:00
selectors Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
servo Update env_logger to 0.6 2018-11-29 12:40:24 +01:00
servo_arc cargo fix --edition 2018-11-10 17:47:28 +01:00
size_of_test Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
std_test_override Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
style Update syn and related dependencies 2018-11-30 17:48:41 +01:00
style_derive Update syn and related dependencies 2018-11-30 17:48:41 +01:00
style_traits Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
url Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
webdriver_server Update webrender 2018-11-27 17:33:13 -08:00
webvr Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
webvr_traits Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00