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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/focus-and-update-layout-crash.html

Issue 2163893002: Avoid calling isFocusable() during updateLayout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout test Created 4 years, 5 months 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <body></body>
5 <script>
6 // Test case for crbug.com/627074
7 test(() => {
8 var iframe = document.createElement('iframe');
9 document.body.appendChild(iframe);
10
11 var doc = iframe.contentDocument;
12 var focusableIframe = document.createElement('iframe');
13 focusableIframe.id = 'iframe1';
14 doc.body.appendChild(focusableIframe);
15 focusableIframe.contentWindow.addEventListener('unload', function () {
16 focusableIframe.focus();
17 });
18 document.body.appendChild(focusableIframe);
19
20 focusableIframe = document.createElement('iframe');
21 focusableIframe.id = 'iframe2';
22 doc.body.appendChild(focusableIframe);
23
24 focusableIframe.focus();
25 }, 'focus should not crash even when it involves updateLayout.');
26 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698