diff options
Diffstat (limited to 'Userland/Libraries/LibWebView')
5 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index 24c861cd2e..ed6185983c 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -298,7 +298,7 @@ void OutOfProcessWebView::notify_server_did_middle_click_link(Badge<WebContentCl on_link_middle_click(url, target, modifiers); } -void OutOfProcessWebView::notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL& url) +void OutOfProcessWebView::notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL& url, bool) { m_url = url; if (on_load_start) diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h index 3a5f9b6723..34e5424dbb 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h @@ -151,7 +151,7 @@ private: virtual void notify_server_did_unhover_link(Badge<WebContentClient>) override; virtual void notify_server_did_click_link(Badge<WebContentClient>, const AK::URL&, String const& target, unsigned modifiers) override; virtual void notify_server_did_middle_click_link(Badge<WebContentClient>, const AK::URL&, String const& target, unsigned modifiers) override; - virtual void notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL&) override; + virtual void notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL&, bool is_redirect) override; virtual void notify_server_did_finish_loading(Badge<WebContentClient>, const AK::URL&) override; virtual void notify_server_did_request_navigate_back(Badge<WebContentClient>) override; virtual void notify_server_did_request_navigate_forward(Badge<WebContentClient>) override; diff --git a/Userland/Libraries/LibWebView/ViewImplementation.h b/Userland/Libraries/LibWebView/ViewImplementation.h index c15dfb0a1a..65c004fd8b 100644 --- a/Userland/Libraries/LibWebView/ViewImplementation.h +++ b/Userland/Libraries/LibWebView/ViewImplementation.h @@ -33,7 +33,7 @@ public: virtual void notify_server_did_unhover_link(Badge<WebContentClient>) = 0; virtual void notify_server_did_click_link(Badge<WebContentClient>, const AK::URL&, String const& target, unsigned modifiers) = 0; virtual void notify_server_did_middle_click_link(Badge<WebContentClient>, const AK::URL&, String const& target, unsigned modifiers) = 0; - virtual void notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL&) = 0; + virtual void notify_server_did_start_loading(Badge<WebContentClient>, const AK::URL&, bool is_redirect) = 0; virtual void notify_server_did_finish_loading(Badge<WebContentClient>, const AK::URL&) = 0; virtual void notify_server_did_request_navigate_back(Badge<WebContentClient>) = 0; virtual void notify_server_did_request_navigate_forward(Badge<WebContentClient>) = 0; diff --git a/Userland/Libraries/LibWebView/WebContentClient.cpp b/Userland/Libraries/LibWebView/WebContentClient.cpp index ade4613a7c..4df5d36ea1 100644 --- a/Userland/Libraries/LibWebView/WebContentClient.cpp +++ b/Userland/Libraries/LibWebView/WebContentClient.cpp @@ -131,9 +131,9 @@ void WebContentClient::did_middle_click_link(AK::URL const& url, String const& t m_view.notify_server_did_middle_click_link({}, url, target, modifiers); } -void WebContentClient::did_start_loading(AK::URL const& url) +void WebContentClient::did_start_loading(AK::URL const& url, bool is_redirect) { - m_view.notify_server_did_start_loading({}, url); + m_view.notify_server_did_start_loading({}, url, is_redirect); } void WebContentClient::did_request_context_menu(Gfx::IntPoint const& content_position) diff --git a/Userland/Libraries/LibWebView/WebContentClient.h b/Userland/Libraries/LibWebView/WebContentClient.h index ae781781fe..886d20c935 100644 --- a/Userland/Libraries/LibWebView/WebContentClient.h +++ b/Userland/Libraries/LibWebView/WebContentClient.h @@ -47,7 +47,7 @@ private: virtual void did_unhover_link() override; virtual void did_click_link(AK::URL const&, String const&, unsigned) override; virtual void did_middle_click_link(AK::URL const&, String const&, unsigned) override; - virtual void did_start_loading(AK::URL const&) override; + virtual void did_start_loading(AK::URL const&, bool) override; virtual void did_request_context_menu(Gfx::IntPoint const&) override; virtual void did_request_link_context_menu(Gfx::IntPoint const&, AK::URL const&, String const&, unsigned) override; virtual void did_request_image_context_menu(Gfx::IntPoint const&, AK::URL const&, String const&, unsigned, Gfx::ShareableBitmap const&) override; |