#48770: fix: the parent window remained interactive after the modal window was opened
Description of Change
Closes #48535
If calling maximize() before show() while open a modal window, maximize() would calling Show() of native_widget_private().
electron/shell/browser/native_window_views.cc
Lines 700 to 701 in 184586f
When using API to call show() to show the modal window, it will cause the conditional result as false,
electron/shell/browser/native_window_views.cc
Lines 556 to 557 in 184586f
So cause the parent window remained interactive after the modal window was opened.
Search commit history, the code introduced in PR: #8768, I cannot reproduce the issues(#8768 and #8677) that PR fixed originally.
While I personally don't recommend resizing the modal window, including minimize and maximize. the API cannot prevent users from maximize before the showing.
Checklist
- PR description included and stakeholders cc'd
-
npm testpasses - tests are changed or added
- relevant API documentation, tutorials, and examples are updated and follow the documentation style guide
- PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: Fixed the issue where the parent window remained interactive after the modal window was opened.
Backports
Semver Impact
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron