mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01: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
|
/// Handles freeze message
|
||||||
fn handle_freeze_msg(&self, id: PipelineId) {
|
fn handle_freeze_msg(&self, id: PipelineId) {
|
||||||
let window = self.documents.borrow().find_window(id);
|
let document = self.documents.borrow().find_document(id);
|
||||||
if let Some(window) = window {
|
if let Some(document) = document {
|
||||||
window.freeze();
|
document.window().freeze();
|
||||||
|
document.fully_deactivate();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let mut loads = self.incomplete_loads.borrow_mut();
|
let mut loads = self.incomplete_loads.borrow_mut();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue