1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibWeb+WebContent: Label redirects with new FrameLoader::Type::Redirect

Previously we labeled redirects as normal FrameLoader::Type::Navigation,
now we introduce a new FrameLoader::Type::Redirect and label redirects
with it. This will allow us to handle redirects in the browser
differently (such as for overwritting the latest history entry when a
redirect happens) :^)
This commit is contained in:
Baitinq 2022-11-10 00:29:35 +01:00 committed by Andreas Kling
parent 45a59b4d7e
commit 45214fdb1a
Notes: sideshowbarker 2024-07-17 04:02:43 +09:00
12 changed files with 16 additions and 15 deletions

View file

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