mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
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:
parent
bfef08177e
commit
a71b2e5fd9
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/a71b2e5fd9 Pull-request: https://github.com/SerenityOS/serenity/pull/23952 Reviewed-by: https://github.com/trflynn89
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue