aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-12-04 00:05:18 -0500
committerJosh Matthews <josh@joshmatthews.net>2015-12-04 00:05:18 -0500
commit5857b41a611200007670ca632c1a4d3240077560 (patch)
tree8915075aff84457ac251ffa43ab1b2a7ed7a2ff9 /components/script/dom/htmlimageelement.rs
parent8fb3c46a03118a3572e676d7c01a3f3702dbead0 (diff)
downloadservo-5857b41a611200007670ca632c1a4d3240077560.tar.gz
servo-5857b41a611200007670ca632c1a4d3240077560.zip
Make IPC image cache listener silently drop failures instead of catastrophically panicking. Resolves #8817.
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index fa9a7e5d69b..11ebf4360de 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -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,