mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Documents now fully deactivate when a freeze message is sent
This commit is contained in:
parent
14aa666a5a
commit
584f72d63b
1 changed files with 4 additions and 3 deletions
|
@ -1354,9 +1354,10 @@ impl ScriptThread {
|
|||
|
||||
/// Handles freeze message
|
||||
fn handle_freeze_msg(&self, id: PipelineId) {
|
||||
let window = self.documents.borrow().find_window(id);
|
||||
if let Some(window) = window {
|
||||
window.freeze();
|
||||
let document = self.documents.borrow().find_document(id);
|
||||
if let Some(document) = document {
|
||||
document.window().freeze();
|
||||
document.fully_deactivate();
|
||||
return;
|
||||
}
|
||||
let mut loads = self.incomplete_loads.borrow_mut();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue