Fix media session action handling

This commit is contained in:
Fernando Jiménez Moreno 2019-11-12 22:09:39 +01:00
parent 9da1dd3592
commit b048d7faf7
9 changed files with 54 additions and 121 deletions

View file

@ -472,8 +472,7 @@ impl ServoGlue {
pub fn media_session_action(&mut self, action: i32) -> Result<(), &'static str> {
info!("Media session action {:?}", action);
let browser_id = self.get_browser_id()?;
self.process_event(WindowEvent::MediaSessionAction(browser_id, action.into()))
self.process_event(WindowEvent::MediaSessionAction(action.into()))
}
fn process_event(&mut self, event: WindowEvent) -> Result<(), &'static str> {