mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
call compositor.window.set_page_url() on WindowEvent::LoadUrl
This commit is contained in:
parent
caa8172560
commit
cf388cd909
1 changed files with 3 additions and 2 deletions
|
@ -883,9 +883,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue