webContents: check for navigation entry before using

This commit is contained in:
deepak1556 2015-04-29 08:57:49 +05:30
parent 3f499f69ff
commit d8be645d5a

View file

@ -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(