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