Snav: Don't navigate to remote frame
Problem: 1. In AdvanceFocusDirectionallyInContainer(), we process navigable container when the container is either scrollable element or local frame. In addition, we insert an element into already_checked only if the element is local frame. So if the loop processes remote frame as best candidate, then we get stuck in infinite loop. 2. OOPIF.IsKeyboardFocusable() = true && OOPIF.IsNavigableContainer() = true Because OOPIF is focusable, spatial navigation can give focus to OOPIF. If we enter into OOPIF by giving focus it, we can't get out of it by spatial navigation. Solution: Until we support OOPIF correctly, don't navigate to remote frame. To do that, we exclude OOPIF from FocusCandidate. Change-Id: I1928e8c7c9d38951687731a691f0ec0abbcdce10 Reviewed-on: https://chromium-review.googlesource.com/1227853Reviewed-by:Hugo Holgersson <hugoh@vewd.com> Reviewed-by:
Fredrik Söderquist <fs@opera.com> Commit-Queue: JunHo Seo <junho0924.seo@lge.com> Cr-Commit-Position: refs/heads/master@{#592739}
Showing
Please register or sign in to comment