Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/crashes/focus-navigation-infinite-loop.html

Issue 2562753003: Fix focus navigation getting stuck (Closed)
Patch Set: Refactor ScopedFocusNavigation class. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/FocusController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src='../../resources/testharness.js'></script>
3 <script src='../../resources/testharnessreport.js'></script>
4 <script src='../resources/shadow-dom.js'></script>
5 <script src='../resources/focus-utils.js'></script>
6 <body>
7 <input id="input-before">
8 <div id="host" tabindex="0">
9 <template>
10 <span>x-element</span>
11 <slot tabindex="1"></slot>
12 </template> </div>
13 <input id="input-after">
14 </body>
15 <script>
16 'use strict';
17
18 test(() => {
19 let host = document.querySelector('#host');
20 convertTemplatesToShadowRootsWithin(host);
21 let elements = [
22 'input-before',
23 'host',
24 'input-after'
25 ];
26 assert_focus_navigation_forward(elements);
27 elements.reverse();
28 assert_focus_navigation_backward(elements);
29 }, 'Focus navigation should not get stuck.');
30 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698