mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
WebContent+Everywhere: Add an option to not activate new tabs over IPC
WebDriver, for example, will want to create new tabs without activating them.
This commit is contained in:
parent
78ed798852
commit
e6fc35897f
21 changed files with 81 additions and 62 deletions
|
@ -468,8 +468,8 @@ Tab::Tab(BrowserWindow& window)
|
|||
go_forward();
|
||||
};
|
||||
|
||||
view().on_new_tab = [this] {
|
||||
auto& tab = this->window().create_new_tab(URL("about:blank"), true);
|
||||
view().on_new_tab = [this](auto activate_tab) {
|
||||
auto& tab = this->window().create_new_tab(URL("about:blank"), activate_tab);
|
||||
return tab.view().handle();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue