Print an error if Glutin port needs to manage a new tab

This commit is contained in:
Paul Rouget 2019-11-06 12:04:31 +01:00
parent 8abc272d27
commit d779573fe0

View file

@ -346,6 +346,8 @@ where
self.browsers.push(new_browser_id);
if self.browser_id.is_none() {
self.browser_id = Some(new_browser_id);
} else {
error!("Multiple top level browsing contexts not supported yet.");
}
self.event_queue
.push(WindowEvent::SelectBrowser(new_browser_id));