mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #24672 - paulrouget:24400, r=jdm
Print an error if Glutin port needs to manage a new tab When a tab needs to be created because the user clicks on a link with a `target=…` attribute, the Glutin port just ignores it, creating weird behaviors. We should at least print an error.
This commit is contained in:
commit
a33d493a4f
1 changed files with 2 additions and 0 deletions
|
@ -346,6 +346,8 @@ where
|
||||||
self.browsers.push(new_browser_id);
|
self.browsers.push(new_browser_id);
|
||||||
if self.browser_id.is_none() {
|
if self.browser_id.is_none() {
|
||||||
self.browser_id = Some(new_browser_id);
|
self.browser_id = Some(new_browser_id);
|
||||||
|
} else {
|
||||||
|
error!("Multiple top level browsing contexts not supported yet.");
|
||||||
}
|
}
|
||||||
self.event_queue
|
self.event_queue
|
||||||
.push(WindowEvent::SelectBrowser(new_browser_id));
|
.push(WindowEvent::SelectBrowser(new_browser_id));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue