| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <!DOCTYPE html> | 
|  | 2 <title>Element ready check with no allowfullscreen attribute</title> | 
|  | 3 <script src="/resources/testharness.js"></script> | 
|  | 4 <script src="/resources/testharnessreport.js"></script> | 
|  | 5 <script src="../trusted-click.js"></script> | 
|  | 6 <iframe src="http://{{domains[www1]}}:{{ports[http][0]}}/fullscreen/api/resource
    s/attempt-fullscreen.html" name="cross-origin-default"></iframe> | 
|  | 7 <script> | 
|  | 8 | 
|  | 9 async_test((t) => { | 
|  | 10   document.onfullscreenchange = t.unreached_func("document fullscreenchange even
    t"); | 
|  | 11   document.onfullscreenerror = t.unreached_func("document fullscreenerror event"
    ); | 
|  | 12 | 
|  | 13   // When a message is received from a child frame, ensure that the report | 
|  | 14   // matches the expectations. | 
|  | 15   window.addEventListener('message', t.step_func(e => { | 
|  | 16     if (e.data.report && e.data.report.api == "fullscreen") { | 
|  | 17       assert_equals(e.data.report.result, false, | 
|  | 18           e.data.report.frame + " frame did enter fullscreen"); | 
|  | 19       t.done(); | 
|  | 20     } | 
|  | 21   })); | 
|  | 22 | 
|  | 23   // Trigger the child frame to report as soon as its content is loaded. | 
|  | 24   var elem = document.querySelector('iframe'); | 
|  | 25   elem.addEventListener('load', () => { | 
|  | 26     trusted_click(t, () => { | 
|  | 27       elem.contentWindow.postMessage({"action": "report"}, "*"); | 
|  | 28     }, document.body); | 
|  | 29   }); | 
|  | 30 }); | 
|  | 31 </script> | 
| OLD | NEW | 
|---|