From cf388cd90903536db5c0f17ba6a7c4e86c030499 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 May 2015 19:13:29 -0400 Subject: [PATCH] call compositor.window.set_page_url() on WindowEvent::LoadUrl --- components/compositing/compositor.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 346666ac31b..a50b51ebc0e 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -883,9 +883,10 @@ impl IOCompositor { None => panic!("Compositor: Received WindowEvent::LoadUrl without initialized compositor \ layers"), }; + let url = Url::parse(&url_string).unwrap(); + self.window.set_page_url(url.clone()); - let msg = ConstellationMsg::LoadUrl(root_pipeline_id, - LoadData::new(Url::parse(&url_string).unwrap())); + let msg = ConstellationMsg::LoadUrl(root_pipeline_id, LoadData::new(url)); let ConstellationChan(ref chan) = self.constellation_chan; chan.send(msg).unwrap() }