Fix crash when receiving a title change notification without a navigation entry (issue #1764)
This commit is contained in:
parent
9bc8da1e02
commit
26e68c3d26
|
@ -2405,7 +2405,12 @@ void CefBrowserHostImpl::FrameDeleted(
|
|||
|
||||
void CefBrowserHostImpl::TitleWasSet(content::NavigationEntry* entry,
|
||||
bool explicit_set) {
|
||||
// |entry| may be NULL if a popup is created via window.open and never
|
||||
// navigated.
|
||||
if (entry)
|
||||
OnTitleChange(entry->GetTitle());
|
||||
else if (web_contents())
|
||||
OnTitleChange(web_contents()->GetTitle());
|
||||
}
|
||||
|
||||
void CefBrowserHostImpl::PluginCrashed(const base::FilePath& plugin_path,
|
||||
|
|
Loading…
Reference in New Issue