1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Ladybird: Add a context menu for video elements

This commit is contained in:
Timothy Flynn 2023-05-15 12:27:10 -04:00 committed by Andreas Kling
parent a0e31bf1de
commit 1b2394d92e
3 changed files with 101 additions and 0 deletions

View file

@ -418,6 +418,8 @@ Tab& BrowserWindow::new_tab(QString const& url, Web::HTML::ActivateTab activate_
m_current_tab->view().on_tab_open_request(url, Web::HTML::ActivateTab::No);
} else if (target == "_blank") {
m_current_tab->view().on_tab_open_request(url, Web::HTML::ActivateTab::Yes);
} else {
m_current_tab->view().load(url);
}
};