Skip to content
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: falsy transparent shouldn't affect webContents background #36914

Merged
merged 1 commit into from May 2, 2023

Conversation

dsanders11
Copy link
Member

@dsanders11 dsanders11 commented Jan 14, 2023

Description of Change

Fixes #37737.
Fixes #36538.

Falsy values for transparent were incorrectly setting the webContents background to be transparent. This was only noticeable in certain situations, since setting a background color for the page would override the transparency. It would affect child windows without any explicit setting of transparent due to the usage of an empty object for browser window options in those cases which led to the transparent key being set with a value of undefined, triggering the bug.

Checklist

Release Notes

Notes: Fixed an issue where default background color for windows might be incorrect

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 14, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 21, 2023
@dsanders11 dsanders11 force-pushed the fix-36538 branch 3 times, most recently from d20e160 to 257490e Compare March 30, 2023 11:37
@dsanders11 dsanders11 added target/23-x-y PR should also be added to the "23-x-y" branch. target/24-x-y PR should also be added to the "24-x-y" branch. semver/patch backwards-compatible bug fixes labels Mar 30, 2023
@dsanders11 dsanders11 marked this pull request as ready for review March 30, 2023 16:31
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Mar 30, 2023
@jkleinsc jkleinsc added the target/25-x-y PR should also be added to the "25-x-y" branch. label Apr 6, 2023
@VerteDinde VerteDinde merged commit a26343f into electron:main May 2, 2023
15 checks passed
@release-clerk
Copy link

release-clerk bot commented May 2, 2023

Release Notes Persisted

Fixed an issue where default background color for windows might be incorrect

@trop
Copy link
Contributor

trop bot commented May 2, 2023

I was unable to backport this PR to "24-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented May 2, 2023

I was unable to backport this PR to "23-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/24-x-y needs-manual-bp/23-x-y and removed target/24-x-y PR should also be added to the "24-x-y" branch. target/23-x-y PR should also be added to the "23-x-y" branch. labels May 2, 2023
@VerteDinde
Copy link
Member

/trop run backport-to 25-x-y

@trop
Copy link
Contributor

trop bot commented May 2, 2023

The backport process for this PR has been manually initiated - sending your PR to 25-x-y!

@trop
Copy link
Contributor

trop bot commented May 2, 2023

I was unable to backport this PR to "25-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/25-x-y and removed target/25-x-y PR should also be added to the "25-x-y" branch. labels May 2, 2023
@dsanders11 dsanders11 deleted the fix-36538 branch May 2, 2023 21:50
dsanders11 added a commit to dsanders11/electron that referenced this pull request May 3, 2023
@trop
Copy link
Contributor

trop bot commented May 3, 2023

@dsanders11 has manually backported this PR to "25-x-y", please check out #38157

@trop
Copy link
Contributor

trop bot commented May 3, 2023

@dsanders11 has manually backported this PR to "24-x-y", please check out #38158

@trop
Copy link
Contributor

trop bot commented May 3, 2023

@dsanders11 has manually backported this PR to "23-x-y", please check out #38159

dsanders11 added a commit to dsanders11/electron that referenced this pull request May 3, 2023
dsanders11 added a commit to dsanders11/electron that referenced this pull request May 3, 2023
dsanders11 added a commit to dsanders11/electron that referenced this pull request May 3, 2023
@trop trop bot added merged/24-x-y PR was merged to the "24-x-y" branch and removed in-flight/24-x-y in-flight/25-x-y labels May 3, 2023
codebytere pushed a commit that referenced this pull request May 3, 2023
fix: falsy transparent shouldn't affect webContents background (#36914)
@trop trop bot added merged/25-x-y PR was merged to the "25-x-y" branch. merged/23-x-y PR was merged to the "23-x-y" branch. and removed in-flight/23-x-y labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/23-x-y PR was merged to the "23-x-y" branch. merged/24-x-y PR was merged to the "24-x-y" branch merged/25-x-y PR was merged to the "25-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
4 participants