mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibWeb: Only call page_did_change_title() from main frame
Otherwise an embedded iframe will override the page title in the browser, for example.
This commit is contained in:
parent
ae95ed5ddd
commit
c183ebc723
3 changed files with 9 additions and 5 deletions
|
@ -102,7 +102,7 @@ void Frame::set_document(DOM::Document* document)
|
|||
|
||||
if (m_document) {
|
||||
m_document->attach_to_frame({}, *this);
|
||||
if (m_page)
|
||||
if (m_page && is_main_frame())
|
||||
m_page->client().page_did_change_title(m_document->title());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue