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:
parent
a0e31bf1de
commit
1b2394d92e
3 changed files with 101 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue