Fix crash when calling LoadURL from OnRenderProcessTerminated (issue #1161)

This commit is contained in:
Marshall Greenblatt 2015-05-13 09:18:46 -04:00
parent 89641b0652
commit bda8dc71be

View File

@ -990,7 +990,8 @@ void CefContentBrowserClient::OverrideWebkitPrefs(
BrowserToWebSettings(browser->settings(), *prefs);
prefs->base_background_color = GetBaseBackgroundColor(rvh);
rvh->GetView()->SetBackgroundColor(prefs->base_background_color);
if (rvh->GetView())
rvh->GetView()->SetBackgroundColor(prefs->base_background_color);
prefs->asynchronous_spell_checking_enabled = true;
// Auto-correct does not work in combination with the unified text checker.