Index: third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/report-full-screen-enabled.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/report-full-screen-enabled.html b/third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/report-full-screen-enabled.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0727d60ee396234f514f946c76ceff85be5f1d44 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/fullscreen/resources/report-full-screen-enabled.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<meta charset="utf-8"> |
+<title>IFrame fullscreenEnabled attribute reporter</title> |
+<body> |
+<script> |
+reportFullscreenEnabled = (frame) => { |
+ parent.postMessage({"report": { |
+ "api": "fullscreen", |
+ "enabled": document.webkitFullscreenEnabled, |
+ "frame": frame |
+ }}, "*"); |
+} |
+ |
+window.addEventListener('message', (e) => { |
+ if (e.data.action == "report") reportFullscreenEnabled(e.data.frame); |
+}); |
+</script> |