mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix media session action handling
This commit is contained in:
parent
9da1dd3592
commit
b048d7faf7
9 changed files with 54 additions and 121 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue