send ChangeUrl message from constellation on init

This commit is contained in:
Mike Blumenkrantz 2015-05-19 19:14:07 -04:00
parent cf388cd909
commit 92d44fb36e

View file

@ -519,8 +519,9 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
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,