1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

Ladybird: Fix reloading functionality

Previously, reloading went back to the first page loaded by
WebView::load() or WebView::load_html(), as they are the only methods
that modify m_url, which is what the reload loaded. Now we handle
reloads in Tab.cpp by simply loading the last entry in the m_history.
This commit is contained in:
Baitinq 2022-11-09 00:35:55 +01:00 committed by Andrew Kaster
parent 0b15fd4a12
commit e80147afba
3 changed files with 2 additions and 7 deletions

View file

@ -79,11 +79,6 @@ WebContentView::~WebContentView()
{
}
void WebContentView::reload()
{
load(m_url);
}
void WebContentView::load(AK::URL const& url)
{
m_url = url;