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: ensure ready-to-show event is fired #25448

Merged
merged 2 commits into from Sep 15, 2020
Merged

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Sep 14, 2020

Description of Change

Close #25253.

The ready-to-show event is not very stable that, sometimes on some machines it might not be fired, and the actual behavior depends on the version of Chromium.

To work around this bug, we ensure the ready-to-show event is emitted if it has not been emitted after did-finish-load event.

The real fix should be fixing the event itself, but unfortunately we haven't been able to find out why it did not emit so far, you can check #7779 on the history of this bug.

Checklist

Release Notes

Notes: Fix ready-to-show event not emitted on some machines.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Sep 14, 2020
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.

@zcbenz looks like this is causing some test failures

@zcbenz
Copy link
Member Author

zcbenz commented Sep 15, 2020

It seems that when loading about:blank Chromium would optimize the did-finish-load event to emit immediately, even earlier than ready-to-show. I have changed the test to actually draw something to work around this.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Sep 15, 2020
@codebytere codebytere merged commit e5933c6 into master Sep 15, 2020
@release-clerk
Copy link

release-clerk bot commented Sep 15, 2020

Release Notes Persisted

Fix ready-to-show event not emitted on some machines.

@codebytere codebytere deleted the ready-to-show-ensure branch September 15, 2020 18:48
@trop
Copy link
Contributor

trop bot commented Sep 15, 2020

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

@trop
Copy link
Contributor

trop bot commented Sep 15, 2020

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

@trop trop bot removed the target/11-x-y label Sep 15, 2020
@trop
Copy link
Contributor

trop bot commented Sep 15, 2020

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

@trop
Copy link
Contributor

trop bot commented Sep 15, 2020

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

@trop
Copy link
Contributor

trop bot commented Sep 16, 2020

@zcbenz has manually backported this PR to "10-x-y", please check out #25476

mlaurencin pushed a commit to mlaurencin/electron that referenced this pull request Sep 16, 2020
* fix: ensure ready-to-show event is fired

* test: acutally draw something when capturePage
CezaryKulakowski added a commit to CezaryKulakowski/electron that referenced this pull request Sep 25, 2020
trop bot pushed a commit that referenced this pull request Sep 28, 2020
@trop
Copy link
Contributor

trop bot commented Oct 23, 2020

@miniak has manually backported this PR to "8-x-y", please check out #26140

miniak pushed a commit that referenced this pull request Oct 23, 2020
ckerr pushed a commit that referenced this pull request Oct 24, 2020
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
vladimiry added a commit to vladimiry/ElectronMail that referenced this pull request Nov 2, 2020
* some time ago @electron made "ready-to-show" event to be fired multiple times which goes against their documentation (possibly caused by electron/electron#25448) and so was causing the annoying windows flickering in the app
devDefiWeb added a commit to devDefiWeb/electron-mail-app that referenced this pull request May 28, 2022
* some time ago @electron made "ready-to-show" event to be fired multiple times which goes against their documentation (possibly caused by electron/electron#25448) and so was causing the annoying windows flickering in the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ready-to-show event is not fired and app window doesn't show
2 participants