aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r--components/servo/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs
index 3d4b7bf14d3..e32c28ef740 100644
--- a/components/servo/lib.rs
+++ b/components/servo/lib.rs
@@ -713,6 +713,16 @@ where
);
}
},
+
+ WindowEvent::MediaSessionAction(a) => {
+ let msg = ConstellationMsg::MediaSessionAction(a);
+ if let Err(e) = self.constellation_chan.send(msg) {
+ warn!(
+ "Sending MediaSessionAction message to constellation failed ({:?}).",
+ e
+ );
+ }
+ },
}
}