From 92d44fb36e6a6ad4548a611da86bd8d1492413fe Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 May 2015 19:14:07 -0400 Subject: [PATCH] send ChangeUrl message from constellation on init --- components/compositing/constellation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs index af94cea02e9..750c124a13a 100644 --- a/components/compositing/constellation.rs +++ b/components/compositing/constellation.rs @@ -519,8 +519,9 @@ impl Constellation { fn handle_init_load(&mut self, url: Url) { let window_rect = Rect(Point2D::zero(), self.window_size.visible_viewport); let root_pipeline_id = - self.new_pipeline(None, Some(window_rect), None, LoadData::new(url)); + self.new_pipeline(None, Some(window_rect), None, LoadData::new(url.clone())); self.push_pending_frame(root_pipeline_id, None); + self.compositor_proxy.send(CompositorMsg::ChangePageUrl(root_pipeline_id, url)); } fn handle_frame_rect_msg(&mut self, containing_pipeline_id: PipelineId, subpage_id: SubpageId,