Documents now fully deactivate when a freeze message is sent

This commit is contained in:
Prudhvi Rampey 2017-01-14 00:56:58 +05:30
parent 14aa666a5a
commit 584f72d63b

View file

@ -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();