Repository navigation
Windows: fix for popup descendent of popup closing the whole tree when the 2nd popup gains focus - #196911
Conversation
5e9c7f5 to
af4af7d
Compare
af4af7d to
8d53db3
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces support and integration tests for nested popups on Windows, ensuring that activating a nested popup does not close its parent. It updates the Win32 window activation logic to use lParam deterministically and introduces a helper to check window ownership. Feedback highlights two critical issues: a potential crash on 32-bit Windows due to signed lParam addresses passed to ffi.Pointer.fromAddress, and a bug in the window hierarchy traversal of isSelfOrDescendant when child windows gain focus, which can be resolved by using GetParent instead of GetWindow and IsChild.
c2a58a2 to
bf007ad
Compare
flutter/flutter@82ec424...43150a8 2026-11-27 [email protected] Windows: fix for popup descendent of popup closing the whole tree when the 2nd popup gains focus (flutter/flutter#196911) 2026-11-27 [email protected] Roll Skia from d693d85a4b77 to fe34f20b9689 (1 revision) (flutter/flutter#197491) 2026-11-27 [email protected] Roll Dart SDK from 691817e0ec3b to 5c3e102fc422 (1 revision) (flutter/flutter#197489) 2026-11-27 [email protected] Roll Fuchsia Linux SDK from 0bgCrr76CM4IqPO0v... to cBAjguERWwvY6tFtz... (flutter/flutter#197488) 2026-11-27 [email protected] [flutter_tools] Delete AppContext and legacy test context shims (flutter/flutter#197412) 2026-11-26 [email protected] Revert: [tool][engine] Enable experimental VM service by default (flutter/flutter#197481) 2026-11-26 [email protected] iOS: Remove engine includes from the platform views controller headers (flutter/flutter#197429) 2026-11-26 [email protected] [tool][engine] Enable experimental VM service by default (flutter/flutter#190100) 2026-11-26 [email protected] Add trust gate flags for "flutter analyze" (flutter/flutter#196415) 2026-11-26 [email protected] Roll Dart SDK from 7fcaf46b0308 to 691817e0ec3b (1 revision) (flutter/flutter#197475) 2026-11-26 [email protected] [Windows] Fix MASM flags in Windows GN `tool("asm")` (flutter/flutter#197464) 2026-11-26 [email protected] Roll Skia from cef5963c1bb2 to d693d85a4b77 (2 revisions) (flutter/flutter#197469) 2026-11-26 [email protected] Roll Packages from 105a874 to da586f5 (3 revisions) (flutter/flutter#197471) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
| } | ||
| }, | ||
| timeout: Timeout.none, | ||
| // TODO(mattkae): Enable on other platforms once nested popup activation is supported there. |
There was a problem hiding this comment.
This TODO is causing analysis failures since skip requires comments that match [intended] <reason>. The lint wasn't being run properly before and was fixed by f0038a3 after the presubmits had already succeeded on this PR.
FYI @jtmcdole @eyebrowsoffire, here's another instance where making Tree Analyze blocking on the merge queue would have prevented the tree from breaking.
|
Reason for revert: failing analysis checks. |
|
Successfully created revert PR: #197530 |
…tree when the 2nd popup gains focus (flutter#197530) Reverts: [Windows: fix for popup descendent of popup closing the whole tree when the 2nd popup gains focus](flutter#196911) Initiated by: @bkonyi Reason for reverting: failing analysis checks. Original PR Author: @mattkae Reviewed By: @robert-ancell The original PR description is provided below: ## What's new? This fixes a windows bug where a popup tree would erroneously close when a popup of a popup was focused. fixes flutter#193782 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant in-code documentation (doc comments with `///`). - [x] If this PR introduces a new feature or capability, I created and linked a website documentation issue or PR in [flutter/website] (or verified none is needed). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
What's new?
This fixes a windows bug where a popup tree would erroneously close when a popup of a popup was focused.
fixes #193782
Pre-launch Checklist
///).