Skip to content

Conversation

@dsanders11
Copy link
Member

@dsanders11 dsanders11 commented Jan 12, 2022

Description of Change

Fixes #32350.

Test is currently disabled on Linux until #28699 is fixed.

cc @ckerr

Checklist

Release Notes

Notes: Fixed minimized BrowserWindow being restored by BrowserWindow.unmaximize()

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jan 12, 2022
codebytere
codebytere previously approved these changes Jan 12, 2022
@codebytere codebytere dismissed their stale review January 12, 2022 16:57

meant to comment

Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing the first test you added:

BrowserWindow module BrowserWindow.unmaximize() should not restore a minimized window - should not restore a minimized window

@dsanders11
Copy link
Member Author

@codebytere, yep, just saw that. I'll boot my Linux machine and see what's going on there, I only tested on Windows.

@dsanders11
Copy link
Member Author

Disabled the failing test for Linux. @codebytere offered to look into #28699, the test can be enabled on Linux again once that's fixed.

I put in some arbitrary waits to hopefully keep the test honest. Testing that something doesn't occur is always a bit tricky. Suggestions welcome if anyone has a better approach.

@zcbenz zcbenz added semver/patch backwards-compatible bug fixes target/14-x-y labels Jan 13, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jan 13, 2022
@zcbenz zcbenz merged commit 0c75b3b into electron:main Jan 17, 2022
@release-clerk
Copy link

release-clerk bot commented Jan 17, 2022

Release Notes Persisted

Fixed minimized BrowserWindow being restored by BrowserWindow.unmaximize()

@trop
Copy link
Contributor

trop bot commented Jan 17, 2022

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

@trop
Copy link
Contributor

trop bot commented Jan 17, 2022

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

@trop
Copy link
Contributor

trop bot commented Jan 17, 2022

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

@trop
Copy link
Contributor

trop bot commented Jan 17, 2022

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

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.unmaximize Will Restore Minimized Window

3 participants