Skip to content

fix: handle a nil backgroundColor in win.getBackgroundColor() #28120

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

Merged
merged 4 commits into from
Mar 15, 2021

Conversation

MarshallOfSound
Copy link
Member

Fixes #28104

[CALayer backgroundColor] is nil by default. When we are transparent and don't assign a background color this would crash inside the skia helper

Notes: Fixed crash when calling getBackgroundColor on a transparent window with no assigned background color.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Mar 11, 2021
@MarshallOfSound MarshallOfSound added target/11-x-y semver/patch backwards-compatible bug fixes labels Mar 11, 2021
@nornagon
Copy link
Contributor

test?

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Mar 12, 2021
@MarshallOfSound MarshallOfSound merged commit 8dfe4ab into master Mar 15, 2021
@release-clerk
Copy link

release-clerk bot commented Mar 15, 2021

Release Notes Persisted

Fixed crash when calling getBackgroundColor on a transparent window with no assigned background color.

@trop
Copy link
Contributor

trop bot commented Mar 15, 2021

I have automatically backported this PR to "11-x-y", please check out #28186

@trop
Copy link
Contributor

trop bot commented Mar 15, 2021

I have automatically backported this PR to "13-x-y", please check out #28187

@trop
Copy link
Contributor

trop bot commented Mar 15, 2021

I have automatically backported this PR to "12-x-y", please check out #28188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: BrowserWindow.getBackgroundColor() crashes with transparent windows on macOS
3 participants