When a DOM element receives the focus, the current FocusContext updates its internal state and validates the focus (e.g. checks that the element is not covered by a glass pane). When doing so, it must not change the scroll position. This is especially relevant when the focus is changed to a different element, e.g. when clicking on a scroll container that we don't consider scrollable (tabindex=-2) but is natively focused by the browser.
When a DOM element receives the focus, the current FocusContext updates its internal state and validates the focus (e.g. checks that the element is not covered by a glass pane). When doing so, it must not change the scroll position. This is especially relevant when the focus is changed to a different element, e.g. when clicking on a scroll container that we don't consider scrollable (tabindex=-2) but is natively focused by the browser.
381281