Fix keyboard scrolling crash
This crash was occurring because we added an element to the scroll chain that didn't have a ScrollableArea. This occurs on an iframe because we promote the iframe to be the effective root scroller (due to it filling the viewport). However, iframe elements don't have a ScrollableArea so this would crash when we bubble a logical scroll. The condition for always adding the root scroller is incorrect. We want to always add the _global_ root scroller, not the effective. The global is where the apply scroll callback is registered which is what correctly does pinch-zoom panning and overscroll glow. The global root scroller is guaranteed to always have a ScrollableArea. Bug: 904247 Change-Id: I14080a74ff3aa5a85347076e74edbc53b2fb9cfc Reviewed-on: https://chromium-review.googlesource.com/c/1340610Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#609378}
Showing
Please register or sign in to comment