mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +00:00
Browser: Implement notify_request_open_new_tab
This commit is contained in:
parent
640864b32e
commit
9d79a9b214
3 changed files with 9 additions and 2 deletions
|
@ -468,6 +468,11 @@ Tab::Tab(BrowserWindow& window)
|
|||
go_forward();
|
||||
};
|
||||
|
||||
view().on_new_tab = [this] {
|
||||
auto& tab = this->window().create_new_tab(URL("about:blank"), true);
|
||||
return tab.view().handle();
|
||||
};
|
||||
|
||||
view().on_close = [this] {
|
||||
on_tab_close_request(*this);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue