fix: fixed white flash on call to BrowserWindow.show#47151
fix: fixed white flash on call to BrowserWindow.show#47151codebytere merged 1 commit intoelectron:mainfrom
Conversation
|
Should this change be scoped only to macOS or is it fine to show webcontents before the window for all platforms ? |
I think that - if there is not apparent reason for it - it's better to have the same code on both platforms. It does not cause any regressions on Windows according to spec tests. |
|
There are following failures on macOS bot: I can't repro it locally. All of them pass on my macOS with and without the fix. Are these tests flaky? |
|
Don't know much about the tests. Just a note that macOS tests run with reduced motion and reduced transparency: Might be the reason or might not be. Worth checking though. (You can also set these settings in the macOS System Settings app). |
|
I believe all tests passed on the retest as I see all green now. |
|
I've pushed a fixup restoring check if window is not modal in |
|
In the pipeline for a fixup I pushed earlier today following test failed on macOS: This test doesn't even display any
|
|
Looks like a flake. It happens sometimes (although we try to minimize it, of course).
Just comment and a maintainer will rerun. I just started a new test run. |
|
It failed again. This time following |
|
Is there any additional work required from me to ge a review? |
|
I'm not familiar enough with the code to review. (Someone else will get to it at some point.) I think it would be nice to have a test though. That way, we can prevent it from regressing again in the future. |
I don't know if it's possible to write spec test which wouldn't be flaky as this is a very brief white flash. |
|
@CezaryKulakowski can you sign your commits? Commit signingThis repo enforces commit signatures for all incoming PRs. |
28dd17e to
ff6a1c2
Compare
|
@CezaryKulakowski please rebase this! |
ff6a1c2 to
6877411
Compare
I've just pushed a fix rebased to the newest master. |
|
@CezaryKulakowski one last rebase and I'll get this merged. Sorry for the delay. |
6877411 to
e19002c
Compare
done |
|
Closing the fix as the bug has been closed as "closed as not planned". I'm going to keep the fix in our repo as a patch to Electron. |
|
Is there anything preventing us from merging it? |
|
Release Notes Persisted
|
|
I have automatically backported this PR to "37-x-y", please check out #48558 |
|
I have automatically backported this PR to "39-x-y", please check out #48559 |
|
I have automatically backported this PR to "38-x-y", please check out #48560 |
Description of Change
Fixes #47149 by showing native NSView corresponding to window's content view before showing the window on a call to
BrowserWindow.show/BrowserWindow.showInactive.Checklist
npm testpassesRelease Notes
Notes: fixed white flash on call to BrowserWindow.show