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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fullscreen/api/resources/report-full-screen-enabled.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 reporter</title>
4 <body>
5 <script>
6 reportFullscreenEnabled = (frame) => {
foolip 2017/08/15 09:44:22 I think this can be simplified. Per http://softwar
iclelland 2017/08/16 13:31:55 That's interesting... If the frame name is availab
7 parent.postMessage({"report": {
8 "api": "fullscreen",
9 "enabled": document.webkitFullscreenEnabled,
foolip 2017/08/15 09:44:22 Use document.fullscreenEnabled in wpt.
iclelland 2017/08/16 13:31:55 Thanks, done.
10 "frame": frame
11 }}, "*");
12 }
13
14 window.addEventListener('message', (e) => {
15 if (e.data.action == "report") reportFullscreenEnabled(e.data.frame);
16 });
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698