Skip to content

Calling dialog.showMessageBox on a parent window immediately after the closure of a modal window freezes the parent window #50068

@mm778899

Description

@mm778899

Preflight Checklist

Electron Version

40.6.1

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 25H2

What arch are you using?

x64

Last Known Working Electron version

No response

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

Message boxes (attached to the parent window) opened shortly after the closure of a modal window must not freeze the parent window

Actual Behavior

Message boxes (attached to the parent window) opened shortly after the closure of a modal window freezes the parent window

Testcase Gist URL

https://gist.github.com/mm778899/588df1a282a47968008f5329fbee5aea

Full example here: https://www.dropbox.com/scl/fi/4oekcb7n3c2w8vc30uez3/report-99.zip?rlkey=vd5zyb220xubfzmkfvjsb4p8k&st=w1nbof36&dl=0

To run the example: npm i && npm run start

Image

Additional Information

The issue happens on Windows 11 but not on Windows 10.
I observed this behavior on Electron vs: 38.7.2 and 40.6.1

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions