Merge pull request #1521 from deepak1556/title_patch

webContents: check for navigation entry before using
This commit is contained in:
Cheng Zhao 2015-04-30 16:54:14 +08:00
commit 72f5381c31

View file

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