| Henri Sivonen | 90ea6fe | 2020-09-14 13:08:59 | [diff] [blame] | 1 | <!doctype html> |
| 2 | <meta charset=utf-8> | ||||
| 3 | <title>activeElement when immediately focusing same-site iframe's contentWindow</title> | ||||
| 4 | <script src=/resources/testharness.js></script> | ||||
| 5 | <script src=/resources/testharnessreport.js></script> | ||||
| 6 | <script> | ||||
| 7 | setup({explicit_done:true}); | ||||
| 8 | window.onmessage = function(e) { | ||||
| Henri Sivonen | 90ea6fe | 2020-09-14 13:08:59 | [diff] [blame] | 9 | test(function() { |
| Henri Sivonen | 1c875e7 | 2021-02-22 10:55:55 | [diff] [blame] | 10 | assert_equals(e.data, "outerparse,activeElement:BODY,willfocusiframe,didfocusiframe,activeElement:IFRAME,willbluriframe,didbluriframe,activeElement:IFRAME,willspineventloop,", 'Check log'); |
| Henri Sivonen | 90ea6fe | 2020-09-14 13:08:59 | [diff] [blame] | 11 | }, "Check result"); |
| 12 | w.close(); | ||||
| 13 | done(); | ||||
| 14 | }; | ||||
| 15 | var w = window.open("support/activeelement-after-immediately-focusing-same-site-iframe-outer-contentwindow.html"); | ||||
| 16 | </script> | ||||