Auto merge of #8818 - jdm:imagepanic, r=Manishearth

Make IPC image cache listener silently drop failures instead of catas…

…trophically panicking. Resolves #8817.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8818)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-04 12:58:43 +05:30
commit 39a36a0098

View file

@ -117,8 +117,8 @@ impl HTMLImageElement {
let runnable = ImageResponseHandlerRunnable::new(
trusted_node.clone(), image_response);
let runnable = wrapper.wrap_runnable(runnable);
script_chan.send(CommonScriptMsg::RunnableMsg(
UpdateReplacedElement, runnable)).unwrap();
let _ = script_chan.send(CommonScriptMsg::RunnableMsg(
UpdateReplacedElement, runnable));
});
image_cache.request_image(img_url,