mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Update servo-media. Remove implicit shutdown requests. It all happens automagicly now
This commit is contained in:
parent
3658a8cc59
commit
507a1e4370
4 changed files with 53 additions and 38 deletions
|
@ -1855,16 +1855,6 @@ impl Drop for HTMLMediaElement {
|
|||
}
|
||||
});
|
||||
|
||||
if let Some(ref player) = *self.player.borrow() {
|
||||
let browsing_context_id = window.window_proxy().top_level_browsing_context_id().0;
|
||||
let client_context_id = ClientContextId::build(
|
||||
browsing_context_id.namespace_id.0,
|
||||
browsing_context_id.index.0.get(),
|
||||
);
|
||||
ServoMedia::get()
|
||||
.unwrap()
|
||||
.shutdown_player(&client_context_id, player.clone());
|
||||
}
|
||||
self.remove_controls();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue