mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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 \
|
None => panic!("Compositor: Received WindowEvent::LoadUrl without initialized compositor \
|
||||||
layers"),
|
layers"),
|
||||||
};
|
};
|
||||||
|
let url = Url::parse(&url_string).unwrap();
|
||||||
|
self.window.set_page_url(url.clone());
|
||||||
|
|
||||||
let msg = ConstellationMsg::LoadUrl(root_pipeline_id,
|
let msg = ConstellationMsg::LoadUrl(root_pipeline_id, LoadData::new(url));
|
||||||
LoadData::new(Url::parse(&url_string).unwrap()));
|
|
||||||
let ConstellationChan(ref chan) = self.constellation_chan;
|
let ConstellationChan(ref chan) = self.constellation_chan;
|
||||||
chan.send(msg).unwrap()
|
chan.send(msg).unwrap()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue