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
ready-to-show event doesn't fire when opening a window to "about:blank" and writing a small amount of content to it #24356
Comments
@codebytere Is there any suggested workaround for this issue? I have a scenario which is waiting on the |
Still a problem in Electron 10.1.2 |
This issue seems to have been reintroduced in Electron 10.1.4 and seems to have never worked in Electron 11. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
repros with Electron 21 |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
repros in v22. gist |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
bump |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
bumpOn Jul 12, 2023, at 21:12, github-actions[bot] ***@***.***> wrote:
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
This is no longer being an issue in Electron v24.6.4 and v25.3.2. Something must fix this in the latest version of Electron. |
Preflight Checklist
Issue Details
Expected Behavior
The
ready-to-show
event should fire when opening a window to "about:blank" and writing a small amount of content to it.Actual Behavior
ready-to-show
doesn't fire until triggering anotherwindow.open
call.ready-to-show
does fire when writing a larger amount of content howeverTo Reproduce
main.js:
npm start
this app.var w = window.open("about:blank", "a"); w.document.write('<body>a</body>"');
window.open("about:blank", "a")
(needs to be for the same window name), then the ready-to-show firesIf you don't make the
w.document.write
call and just open a window to"about:blank"
, then theready-to-show
event fires appropriately.If instead, you write more content (e.g.
var w = window.open("about:blank", "a"); w.document.write('<body>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaa</body>"');
), thenready-to-show
fires correctly.The text was updated successfully, but these errors were encountered: