mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:25:06 +00:00
LibWeb: Handle PageClient::page_did_change_title() in Frame::set_document()
This commit is contained in:
parent
a2a603d38a
commit
216ccaf805
2 changed files with 3 additions and 4 deletions
|
@ -207,7 +207,6 @@ void FrameLoader::load_html(const StringView& html, const URL& url)
|
|||
HTML::HTMLDocumentParser parser(html, "utf-8");
|
||||
parser.run(url);
|
||||
frame().set_document(&parser.document());
|
||||
frame().page().client().page_did_change_title(document->title());
|
||||
}
|
||||
|
||||
void FrameLoader::load_error_page(const URL& failed_url, const String& error)
|
||||
|
@ -224,7 +223,6 @@ void FrameLoader::load_error_page(const URL& failed_url, const String& error)
|
|||
auto document = HTML::parse_html_document(html, failed_url, "utf-8");
|
||||
ASSERT(document);
|
||||
frame().set_document(document);
|
||||
frame().page().client().page_did_change_title(document->title());
|
||||
},
|
||||
[](auto error) {
|
||||
dbg() << "Failed to load error page: " << error;
|
||||
|
@ -257,7 +255,6 @@ void FrameLoader::resource_did_load()
|
|||
}
|
||||
|
||||
frame().set_document(document);
|
||||
frame().page().client().page_did_change_title(document->title());
|
||||
|
||||
if (!url.fragment().is_empty())
|
||||
frame().scroll_to_anchor(url.fragment());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue