Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
13.1.9
What operating system are you using?
macOS
Operating System Version
Big Sur 11.5.2
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
Toggling the documentEdited
status on a Browser window with titleBarStyle: 'hiddenInset'
simply sets the black dot indicating an edited document and not move the traffic lights around.
Actual Behavior
When the documentEdited
status is toggled, the traffic lights move from the hiddenInset
position to simply the hidden
position (that is: slightly less inset).
Interestingly, once I blur the window and re-focus it (i.e. by moving another window on top of it) this resets the traffic lights back to the hidenInset position while retaining the black dot. When the documentEdited
status is then toggled again, the traffic lights again move to the hidden
position, and back to hiddenInset
once the window is blurred.
Instructions for the Testcase
- Run the gist in Electron fiddle on either an ARM64 or Intel Mac
- Click the "Toggle documentEdited Status"-button
- Observe that the traffic lights move further into the corner of the window and a black dot appears
- Blur the window (e.g. by clicking on the Desktop, activating another application, etc)
- Observe that the traffic lights move back to the correct position while the black dot is being retained
- Click "Toggle documentEdited Status" again
- Observe the same behavior, now without the black dot
Testcase Gist URL
https://gist.github.com/166ffcd98c950e6e97fec05ae4f2683b
Additional Information
I believe this to be a regression bug directly related to a previous issue of mine: #30039
That issue has been fixed with this PR: #30322
The previous bug from issue 30039 has been fixed in Electron 13.1.8, but that also introduced the moving around of the traffic lights.