mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Ability to create new TopLevelBrowsingContext
This commit is contained in:
parent
899aa0c371
commit
bb3ac8f266
5 changed files with 24 additions and 12 deletions
|
@ -818,6 +818,13 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
self.webrender.set_profiler_enabled(!profiler_enabled);
|
||||
self.webrender_api.generate_frame(self.webrender_document, None);
|
||||
}
|
||||
|
||||
WindowEvent::NewBrowser(url, response_chan) => {
|
||||
let msg = ConstellationMsg::NewBrowser(url, response_chan);
|
||||
if let Err(e) = self.constellation_chan.send(msg) {
|
||||
warn!("Sending NewBrowser message to constellation failed ({}).", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue