fix: add support for title change with window history navigation (#27724)
This commit is contained in:
parent
c99c4117c8
commit
b0a6eb6a53
1 changed files with 9 additions and 0 deletions
|
@ -1704,6 +1704,15 @@ void WebContents::DidFinishNavigation(
|
|||
frame_process_id, frame_routing_id);
|
||||
}
|
||||
}
|
||||
content::NavigationEntry* entry = navigation_handle->GetNavigationEntry();
|
||||
|
||||
// This check is needed due to an issue in Chromium
|
||||
// Check the Chromium issue to keep updated:
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=1178663
|
||||
// If a history entry has been made and the forward/back call has been made,
|
||||
// proceed with setting the new title
|
||||
if (entry && (entry->GetTransitionType() & ui::PAGE_TRANSITION_FORWARD_BACK))
|
||||
WebContents::TitleWasSet(entry);
|
||||
}
|
||||
|
||||
void WebContents::TitleWasSet(content::NavigationEntry* entry) {
|
||||
|
|
Loading…
Reference in a new issue