From 92f6599854876f8c2beb51434b7188c89cba297b Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 1 Oct 2013 21:39:31 -0400 Subject: Wait for any layout tasks to complete in a page tree before a handling a pipeline's exit message. --- src/components/script/script_task.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/script/script_task.rs') diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 5edec50a324..8ca1eb4a5bf 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -629,7 +629,9 @@ impl ScriptTask { } } - fn handle_exit_window_msg(&mut self, _id: PipelineId) -> bool { + fn handle_exit_window_msg(&mut self, id: PipelineId) -> bool { + self.handle_exit_pipeline_msg(id); + // TODO(tkuehn): currently there is only one window, // so this can afford to be naive and just shut down the // compositor. In the future it'll need to be smarter. -- cgit v1.2.3