Merge pull request #1521 from deepak1556/title_patch
webContents: check for navigation entry before using
This commit is contained in:
commit
72f5381c31
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ void WebContents::DidNavigateMainFrame(
|
|||
|
||||
void WebContents::TitleWasSet(content::NavigationEntry* entry,
|
||||
bool explicit_set) {
|
||||
Emit("page-title-set", entry->GetTitle(), explicit_set);
|
||||
// Back/Forward navigation may have pruned entries.
|
||||
if (entry)
|
||||
Emit("page-title-set", entry->GetTitle(), explicit_set);
|
||||
}
|
||||
|
||||
void WebContents::DidUpdateFaviconURL(
|
||||
|
|
Loading…
Reference in a new issue