Index: ui/webui/resources/js/cr/ui/overlay.js |
diff --git a/ui/webui/resources/js/cr/ui/overlay.js b/ui/webui/resources/js/cr/ui/overlay.js |
index 892df027f375e09ccdabc292bb974436868fe4c2..56f339f1b1d3e07c5c74d73b5f778d2458fa92a9 100644 |
--- a/ui/webui/resources/js/cr/ui/overlay.js |
+++ b/ui/webui/resources/js/cr/ui/overlay.js |
@@ -97,6 +97,8 @@ cr.define('cr.ui.overlay', function() { |
var closeButtons = overlay.querySelectorAll('.page > .close-button'); |
for (var i = 0; i < closeButtons.length; i++) { |
closeButtons[i].addEventListener('click', function(e) { |
+ if (cr.ui.FocusOutlineManager) |
+ cr.ui.FocusOutlineManager.forDocument(document).updateVisibility(); |
cr.dispatchSimpleEvent(overlay, 'cancelOverlay'); |
}); |
} |