Index: third_party/WebKit/LayoutTests/media/viewport-in-standalone-media-document.html |
diff --git a/third_party/WebKit/LayoutTests/media/viewport-in-standalone-media-document.html b/third_party/WebKit/LayoutTests/media/viewport-in-standalone-media-document.html |
index ab612f58e041ae42bdd158d769c5fe6f0c11ef94..597032002c17594821f30caf9b67a82a41583102 100644 |
--- a/third_party/WebKit/LayoutTests/media/viewport-in-standalone-media-document.html |
+++ b/third_party/WebKit/LayoutTests/media/viewport-in-standalone-media-document.html |
@@ -6,13 +6,9 @@ |
<script> |
var metaElement; |
var standaloneMediaDocument; |
- var skipOnFirstEmptyLoad = 0; |
function frameLoaded() |
{ |
- if (++skipOnFirstEmptyLoad == 1) |
- return; |
- |
standaloneMediaDocument = document.getElementById("videoframe").contentDocument; |
metaElement = standaloneMediaDocument.querySelector("meta"); |
@@ -27,9 +23,10 @@ |
<p> |
This tests that a standalone media document has viewport settings. |
</p> |
- <iframe id="videoframe" onload="frameLoaded()"></iframe> |
+ <iframe id="videoframe"></iframe> |
<script> |
document.getElementById("videoframe").src = findMediaFile("video", "content/test"); |
+ document.getElementById("videoframe").onload = frameLoaded; |
</script> |
</body> |
</html> |