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

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: Bug fix: handling the case when frame parent does not exist 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 <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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698