1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

LibWebView+Ladybird: Remove duplicate WebContent callback

We have on_navigate_back + on_back_button and on_navigate_forward +
on_forward_button. Remove the *_button variants.
This commit is contained in:
Timothy Flynn 2023-08-18 18:33:25 -04:00 committed by Andreas Kling
parent 1adf06c9f0
commit 9608bfb576
5 changed files with 14 additions and 28 deletions

View file

@ -113,14 +113,6 @@ Tab::Tab(BrowserWindow* window, StringView webdriver_content_ipc_path, WebView::
m_hover_label->hide();
};
view().on_back_button = [this] {
back();
};
view().on_forward_button = [this] {
forward();
};
view().on_load_start = [this](const URL& url, bool is_redirect) {
// If we are loading due to a redirect, we replace the current history entry
// with the loaded URL