fix: correctly propagate title updates for window with no navigation entries (#29946)

This commit is contained in:
Jeremy Rose 2021-06-30 10:53:10 -07:00 committed by GitHub
parent 675bbfe092
commit a8b3c22518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -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);