webContents: check for navigation entry before using
This commit is contained in:
parent
3f499f69ff
commit
d8be645d5a
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ void WebContents::DidNavigateMainFrame(
|
||||||
|
|
||||||
void WebContents::TitleWasSet(content::NavigationEntry* entry,
|
void WebContents::TitleWasSet(content::NavigationEntry* entry,
|
||||||
bool explicit_set) {
|
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(
|
void WebContents::DidUpdateFaviconURL(
|
||||||
|
|
Loading…
Reference in a new issue