OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Feature-Policy Fullscreen</title> |
| 3 <div>Fullscreen</div> |
| 4 <script> |
| 5 document.onwebkitfullscreenerror = function() { |
| 6 parent.postMessage({ type: 'error', enabled: document.webkitFullscreenEnabled
}, '*'); |
| 7 }; |
| 8 |
| 9 document.onwebkitfullscreenchange = function() { |
| 10 document.webkitExitFullscreen(); |
| 11 parent.postMessage({ type: 'change', enabled: document.webkitFullscreenEnabled
}, '*'); |
| 12 }; |
| 13 |
| 14 document.addEventListener('keypress', function() { |
| 15 document.querySelector('div').webkitRequestFullscreen(); |
| 16 }); |
| 17 |
| 18 window.onload = function() { |
| 19 focus(); |
| 20 eventSender.keyDown('a', []); |
| 21 } |
| 22 </script> |
OLD | NEW |