|
@@ -1405,14 +1405,15 @@ void WebContents::HandleNewRenderFrame(
|
|
|
&color_name)) {
|
|
|
web_contents()->SetPageBaseBackgroundColor(ParseHexColor(color_name));
|
|
|
} else {
|
|
|
- web_contents()->SetPageBaseBackgroundColor(absl::nullopt);
|
|
|
+ web_contents()->SetPageBaseBackgroundColor(
|
|
|
+ IsGuest() ? absl::make_optional(SK_ColorTRANSPARENT) : absl::nullopt);
|
|
|
}
|
|
|
|
|
|
// When a page base background color is set, transparency needs to be
|
|
|
// explicitly set by calling
|
|
|
// RenderWidgetHostOwnerDelegate::SetBackgroundOpaque(false).
|
|
|
// RenderWidgetHostViewBase::SetBackgroundColor() will do this for us.
|
|
|
- if (web_preferences->IsEnabled(options::kTransparent)) {
|
|
|
+ if (web_preferences->IsEnabled(options::kTransparent) || IsGuest()) {
|
|
|
rwhv->SetBackgroundColor(SK_ColorTRANSPARENT);
|
|
|
}
|
|
|
}
|