mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: correctly propagate title updates for window with no navigation entries (#29946)
This commit is contained in:
@@ -1752,6 +1752,8 @@ void WebContents::TitleWasSet(content::NavigationEntry* entry) {
|
||||
} else {
|
||||
final_title = title;
|
||||
}
|
||||
} else {
|
||||
final_title = web_contents()->GetTitle();
|
||||
}
|
||||
for (ExtendedWebContentsObserver& observer : observers_)
|
||||
observer.OnPageTitleUpdated(final_title, explicit_set);
|
||||
|
||||
Reference in New Issue
Block a user