Commit 315826e5 authored by Sophie Yang's avatar Sophie Yang Committed by Commit Bot

[Switch Access] Handle the system menu closing

This change fixes crbug/998959 by setting inSystemMenu_
to false when the system menu (i.e. the right-click
or context menu) is removed from the page.

Bug: 998959
Change-Id: I391b634217513247c4f4215f5a47ffb028886bc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1775381Reviewed-by: default avatarAnastasia Helfinstein <anastasi@google.com>
Reviewed-by: default avatarAkihiro Ota <akihiroota@chromium.org>
Commit-Queue: Sophie Yang <sophyang@google.com>
Cr-Commit-Position: refs/heads/master@{#691780}
parent 62b217d7
......@@ -614,6 +614,11 @@ class NavigationManager {
if (!removedByRWA && treeChange.target !== this.node_)
return;
if (this.inSystemMenu_) {
// The node removed was the system menu.
this.inSystemMenu_ = false;
}
this.focusRingManager.clearAll();
// Current node not invalid until after treeChange callback, so move to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment