| Index: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1fe1b741d740393cd21accdaa2cee1311349f305
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<title>Feature-Policy Fullscreen</title>
|
| +<div>Fullscreen</div>
|
| +<script>
|
| +document.onwebkitfullscreenerror = function() {
|
| + parent.postMessage({ type: 'error', enabled: document.webkitFullscreenEnabled }, '*');
|
| +};
|
| +
|
| +document.onwebkitfullscreenchange = function() {
|
| + document.webkitExitFullscreen();
|
| + parent.postMessage({ type: 'change', enabled: document.webkitFullscreenEnabled }, '*');
|
| +};
|
| +
|
| +document.addEventListener('keypress', function() {
|
| + document.querySelector('div').webkitRequestFullscreen();
|
| +});
|
| +
|
| +window.onload = function() {
|
| + focus();
|
| + eventSender.keyDown('a', []);
|
| +}
|
| +</script>
|
|
|