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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/attempt-full-screen.html

Issue 2898503002: Reenable feature policy control over fullscreen (Closed)
Patch Set: Reinstate original (same-origin) wpt tests with failing expectations Created 3 years, 4 months 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 <meta charset="utf-8">
3 <title>IFrame fullscreenEnabled attribute and success reporter</title>
4 <body>
5 <script>
6 reportFullscreenEnabled = (frame, success) => {
7 return () => {
8 parent.postMessage({"report": {
9 "api": "fullscreen",
10 "result": [document.fullscreenEnabled, success],
11 "frame": frame
12 }}, "*");
13 };
14 };
15
16 window.addEventListener('message', (e) => {
17 if (e.data.action == "report") {
18 var frame = e.data.frame;
19 document.onfullscreenchange = reportFullscreenEnabled(frame, true);
20 document.onfullscreenerror = reportFullscreenEnabled(frame, false);
21 document.body.requestFullscreen();
foolip 2017/08/15 09:44:22 This request ought to always fail since it's not i
iclelland 2017/08/16 13:31:55 Interesting... this is triggered by postmessage fr
iclelland 2017/08/16 14:20:57 And this is done; I've split the test into two, to
foolip 2017/08/16 21:43:14 Ah, so I guess it works because there was a user g
22 }
23 });
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698