-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip closing ShellSurfaceBase if capture mode is active.
It also updates `ash::~Shell` to fix a pre-existing issue that global instance of `CaptureModeController` sometimes get accessed its destruction. Without this change what can happen is that: - `views::MenuHost` has a capture. - Chrome starts shutdown and `ash::~Shell` starts. First `CaptureModeController` is destroyed. = Then `ash::Shell::CloseAllRootWindowChildWindows` is called which causes the `MenuHost` to lose capture and call `MenuHost::OnMouseCaptureLost` which calls `ViewsDelegate::ShouldCloseMenuIfMouseCaptureLost()` which then tries to access `CaptureModeController` after its destruction. Test: exo_unittests, ash_unittests Bug: 1383272 Change-Id: I149c51a6b0bd2f95014f043a9f59aa9a03711289 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4914800 Reviewed-by: Ahmed Fakhry <afakhry@chromium.org> Reviewed-by: Eliot Courtney <edcourtney@chromium.org> Commit-Queue: Yuta Hijikata <ythjkt@chromium.org> Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Cr-Commit-Position: refs/heads/main@{#1216759}
- Loading branch information
Yuta Hijikata
authored and
Chromium LUCI CQ
committed
Oct 30, 2023
1 parent
3b059f6
commit 3002206
Showing
10 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters