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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/local-iFrame-from-remote.html

Issue 2842253002: Move ReportLocalLoadFailed to ExecutionContext (Closed)
Patch Set: Revert ResourceLoader changes, handle main resource redirect in DocumentLoader Created 3 years, 7 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/http/tests/security/local-iFrame-from-remote.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/local-iFrame-from-remote.html b/third_party/WebKit/LayoutTests/http/tests/security/local-iFrame-from-remote.html
index e8c82086a31527649b5a13213c94949070dffc8b..5e7d2c0a9f729bee809f57bfdea2d8bc5807df89 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/local-iFrame-from-remote.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/local-iFrame-from-remote.html
@@ -16,8 +16,8 @@
document.body.appendChild(localIframeElement);
var result = document.getElementById("result");
- var myFrameDocument = document.getElementById("myFrame").contentDocument;
- if (myFrameDocument !== null)
+ var frameWindow = document.getElementById("myFrame").contentWindow;
+ if (frameWindow && frameWindow.location != "about:blank")
result.innerHTML = "Test Failed: Local page remotely loaded into iFrame.";
else
result.innerHTML = "Test Passed. Local page not remotely loaded into iFrame.";

Powered by Google App Engine
This is Rietveld 408576698