2017-01-13 22:35:26 +01:00
|
|
|
diff --git content/browser/renderer_host/render_widget_host_view_aura.cc content/browser/renderer_host/render_widget_host_view_aura.cc
|
2018-05-20 15:51:42 +02:00
|
|
|
index 6a0753f3f3b8..f567fee075e4 100644
|
2017-01-13 22:35:26 +01:00
|
|
|
--- content/browser/renderer_host/render_widget_host_view_aura.cc
|
|
|
|
+++ content/browser/renderer_host/render_widget_host_view_aura.cc
|
2018-05-20 15:51:42 +02:00
|
|
|
@@ -744,9 +744,11 @@ void RenderWidgetHostViewAura::UpdateBackgroundColorFromRenderer(
|
2018-04-19 17:44:42 +02:00
|
|
|
return;
|
2017-04-20 21:28:17 +02:00
|
|
|
background_color_ = color;
|
|
|
|
|
2018-04-19 17:44:42 +02:00
|
|
|
- bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
|
2017-01-13 22:35:26 +01:00
|
|
|
- window_->layer()->SetFillsBoundsOpaquely(opaque);
|
|
|
|
- window_->layer()->SetColor(color);
|
|
|
|
+ if (window_) {
|
2018-04-19 17:44:42 +02:00
|
|
|
+ bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
|
2017-01-13 22:35:26 +01:00
|
|
|
+ window_->layer()->SetFillsBoundsOpaquely(opaque);
|
|
|
|
+ window_->layer()->SetColor(color);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
2018-04-19 17:44:42 +02:00
|
|
|
void RenderWidgetHostViewAura::WindowTitleChanged() {
|
2018-05-20 15:51:42 +02:00
|
|
|
@@ -1935,6 +1937,15 @@ void RenderWidgetHostViewAura::CreateAuraWindow(aura::client::WindowType type) {
|
2018-03-20 21:15:08 +01:00
|
|
|
if (frame_sink_id_.is_valid())
|
|
|
|
window_->SetEmbedFrameSinkId(frame_sink_id_);
|
2017-09-05 17:41:34 +02:00
|
|
|
|
|
|
|
+ // Do this after |window_| is created to avoid crashes on Win10.
|
|
|
|
+ // See https://crbug.com/761389.
|
|
|
|
+ RenderViewHost* rvh = RenderViewHost::From(host_);
|
|
|
|
+ if (rvh) {
|
|
|
|
+ // TODO(mostynb): actually use prefs. Landing this as a separate CL
|
|
|
|
+ // first to rebaseline some unreliable layout tests.
|
|
|
|
+ ignore_result(rvh->GetWebkitPreferences());
|
|
|
|
+ }
|
|
|
|
+
|
2018-05-20 15:51:42 +02:00
|
|
|
if (!features::IsMashEnabled())
|
2017-09-05 17:41:34 +02:00
|
|
|
return;
|
|
|
|
|