Emit event when title becomes empty
This commit is contained in:
parent
8d20dda6d7
commit
83ee78451a
1 changed files with 2 additions and 1 deletions
|
@ -519,9 +519,10 @@ void WebContents::DidNavigateMainFrame(
|
|||
|
||||
void WebContents::TitleWasSet(content::NavigationEntry* entry,
|
||||
bool explicit_set) {
|
||||
// Back/Forward navigation may have pruned entries.
|
||||
if (entry)
|
||||
Emit("page-title-set", entry->GetTitle(), explicit_set);
|
||||
else
|
||||
Emit("page-title-set", "", explicit_set);
|
||||
}
|
||||
|
||||
void WebContents::DidUpdateFaviconURL(
|
||||
|
|
Loading…
Reference in a new issue