Make IPC image cache listener silently drop failures instead of catastrophically panicking. Resolves #8817.

This commit is contained in:
Josh Matthews 2015-12-04 00:05:18 -05:00
parent 8fb3c46a03
commit 5857b41a61

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,