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

Unified Diff: third_party/WebKit/LayoutTests/media/viewport-in-standalone-media-document.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698