Ladybird/Qt: Use reload() IPC call for reload button

Instead of treating reloading as a regular navigation by using
load_url(), now we invoke a navigable reloading algorithm implemented
from the spec.

Now both reloading triggered from UI and location.reload() will use the
same code path.
This commit is contained in:
Aliaksandr Kalenik 2024-04-13 18:53:41 +02:00 committed by Alexander Kalenik
parent bfef08177e
commit a71b2e5fd9
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00

View file

@ -786,11 +786,7 @@ void Tab::forward()
void Tab::reload()
{
if (m_history.is_empty())
return;
m_is_history_navigation = true;
view().load(m_history.current().url.to_byte_string());
view().reload();
}
void Tab::open_link(URL::URL const& url)