Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML> | |
| 2 <script src="../../../resources/testharness.js"></script> | |
| 3 <script src="../../../resources/testharnessreport.js"></script> | |
| 4 <button id="button"></button> | |
| 5 <iframe id="iframe"></iframe> | |
| 6 <script> | |
| 7 // This is a reproduction case for crbug.com/626750. | |
| 8 async_test((test) => { | |
| 9 button.addEventListener('focus', () => { | |
| 10 iframe.contentWindow.focus(); | |
| 11 }, false); | |
|
yosin_UTC9
2016/07/21 06:10:10
nit: Since default value of second parameter is |f
kochi
2016/07/21 06:55:26
Done.
| |
| 12 | |
| 13 button.addEventListener('blur', test.step_func_done(() => { | |
| 14 // This detaches <iframe>. | |
| 15 document.open(); | |
| 16 assert_true(true, "Test did not crash."); | |
|
yosin_UTC9
2016/07/21 06:10:10
We should check value of |document.activeElement|
kochi
2016/07/21 06:55:26
What is the intention of wanting to know the then-
yosin_UTC9
2016/07/21 07:22:36
Checking |document.activeElement| leads us |FocusC
kochi
2016/07/21 09:00:33
Originally I thought that this test is for reprodu
| |
| 17 }), false); | |
|
yosin_UTC9
2016/07/21 06:10:10
nit: Since default value of second parameter is |f
kochi
2016/07/21 06:55:26
Done.
| |
| 18 | |
| 19 window.addEventListener('load', () => { button.focus(); }, false); | |
|
yosin_UTC9
2016/07/21 06:10:10
nit: We can write |window.addEventListener('load',
kochi
2016/07/21 06:55:26
Done.
| |
| 20 }, "focusing on detached frame should not crash"); | |
|
yosin_UTC9
2016/07/21 06:10:10
nit: use single quote since other parts in script
kochi
2016/07/21 06:55:26
Done.
| |
| 21 </script> | |
| OLD | NEW |