aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/compositor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/compositing/compositor.rs')
-rw-r--r--components/compositing/compositor.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs
index c5ceec0aa1f..b9dbec1a513 100644
--- a/components/compositing/compositor.rs
+++ b/components/compositing/compositor.rs
@@ -811,6 +811,13 @@ impl<Window: WindowMethods> IOCompositor<Window> {
}
}
+ WindowEvent::CloseBrowser(ctx) => {
+ let msg = ConstellationMsg::CloseBrowser(ctx);
+ if let Err(e) = self.constellation_chan.send(msg) {
+ warn!("Sending CloseBrowser message to constellation failed ({}).", e);
+ }
+ }
+
WindowEvent::SelectBrowser(ctx) => {
let msg = ConstellationMsg::SelectBrowser(ctx);
if let Err(e) = self.constellation_chan.send(msg) {