Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen.html

Issue 2499373002: Implementation for feature policy - fullscreen (Closed)
Patch Set: Codereview update and added layout tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
foolip 2016/12/02 10:52:09 head can be omitted
lunalu1 2016/12/02 19:22:06 Done.
3 <title>Feature-Policy Fullscreen Disabled</title>
4 </head>
5 <div>Fullscreen</div>
6 <script>
7 document.onwebkitfullscreenerror = function() {
8 parent.postMessage({ type: 'error', enabled: document.webkitFullscreenEnabled }, '*');
9 };
10
11 document.onwebkitfullscreenchange = function() {
12 document.webkitExitFullscreen();
13 parent.postMessage({ type: 'change', enabled: document.webkitFullscreenEnabled }, '*');
14 };
15
16 document.addEventListener('keypress', function() {
17 document.querySelector('div').webkitRequestFullscreen();
18 }, { once: true });
foolip 2016/12/02 10:52:09 { once: true } is harmless here, but also not need
lunalu1 2016/12/02 19:22:06 Done.
19
20 window.onload = function() {
21 focus();
22 eventSender.keyDown('a', []);
23 }
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698