1
Fork 0
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:
Aliaksandr Kalenik 2023-03-15 15:48:16 +03:00 committed by Tim Flynn
parent 640864b32e
commit 9d79a9b214
3 changed files with 9 additions and 2 deletions

View file

@ -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);
};