Index: LayoutTests/fullscreen/full-screen-iframe-legacy.html |
diff --git a/LayoutTests/fullscreen/full-screen-iframe-legacy.html b/LayoutTests/fullscreen/full-screen-iframe-legacy.html |
index 6a3bb524f23052417b1df9e6c95ca15f3293509b..886275a5587a19c0e3ddeabb6bf38f172d5ee892 100644 |
--- a/LayoutTests/fullscreen/full-screen-iframe-legacy.html |
+++ b/LayoutTests/fullscreen/full-screen-iframe-legacy.html |
@@ -1,6 +1,4 @@ |
-<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=61461">bug 61461</a>: |
-Handle entering full screen security restrictions</p> |
-<p>To test manually, click the video "full screen" button - the page should enter full screen mode.</p> |
+<p>HTMLVideoElement.webkitEnterFullScreen() in an iframe requires the allowfullscreen attribute</p> |
<script src="full-screen-test.js"></script> |
<script src="../media/media-file.js"></script> |
<script> |
@@ -17,10 +15,7 @@ function canplaythrough() { |
function runTest() { |
var frame = document.getElementById('frame'); |
- waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() { |
- test("document.getElementById('frame').contentDocument.width==document.width") |
- endTest(); |
- }); |
+ waitForEventAndEnd(frame.contentDocument, 'webkitfullscreenerror'); |
var video = frame.contentDocument.getElementsByTagName('video')[0]; |
var mediaFile = findMediaFile("video", "../../media/content/test"); |