-
Notifications
You must be signed in to change notification settings - Fork 15.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix transparent windows losing transparency when devtools detaches #11956
Fix transparent windows losing transparency when devtools detaches #11956
Conversation
…arent window devtools detach
931b0d5
to
d31d208
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks!
@@ -170,7 +170,7 @@ void RendererClientBase::RenderViewCreated(content::RenderView* render_view) { | |||
// If backgroundColor is specified then use it. | |||
std::string name = cmd->GetSwitchValueASCII(switches::kBackgroundColor); | |||
// Otherwise use white background. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is now out of date. I'd just remove the two comments above since the code is obvious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me, I'm 👍 removing the outdated comment.
Fixes #11833
Related chromium issue. This might be a permament fix, since before we relied on the
SetBaseBackgroundColorOverride
that was called bySetBackgroundOpaque
, which is now gonna be cleared when the devtools is detached.