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

Unified Diff: LayoutTests/http/tests/local/file-url-sent-as-referer.html

Issue 806183005: Remove FrameLoader's checkLoadComplete and checkLoadCompleteForThisFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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: LayoutTests/http/tests/local/file-url-sent-as-referer.html
diff --git a/LayoutTests/http/tests/local/file-url-sent-as-referer.html b/LayoutTests/http/tests/local/file-url-sent-as-referer.html
index e6e03f3cbfad028a788de86f40749281109126f6..243b50760e581e517dae1b041c1193a0882b2ea4 100644
--- a/LayoutTests/http/tests/local/file-url-sent-as-referer.html
+++ b/LayoutTests/http/tests/local/file-url-sent-as-referer.html
@@ -1,17 +1,24 @@
<html>
<head>
<script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
function getImage()
{
var frameObj = document.getElementById("myFrame");
frameObj.contentWindow.document.write("<img src=\"http://127.0.0.1:8000/security/resources/showRefererImage.php\"/>");
frameObj.contentWindow.document.close();
+ frameObj.onload = function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ };
}
</script>
</head>
<body>
<br>This is a test to see if a file:// url is sent out as the referrer for a subresource load<br>
-<iframe id="myFrame" src="about:blank" onLoad="getImage();"></iframe>
+<iframe id="myFrame" src="about:blank" onLoad="setTimeout(getImage, 0);"></iframe>
<br>The above image will tell you success or failure - green or red<br>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698