LibWeb: Scroll back to the top when a new page is loaded

This commit is contained in:
Jack Byrne 2020-04-16 13:09:36 +01:00 committed by Andreas Kling
parent 1642fdf82d
commit f65c55791e
Notes: sideshowbarker 2024-07-19 07:33:21 +09:00

View file

@ -379,6 +379,7 @@ void HtmlView::load(const URL& url)
[this, url](auto error) {
load_error_page(url, error);
});
this->scroll_to_top();
}
void HtmlView::load_error_page(const URL& failed_url, const String& error)