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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-synchronous-frame-load-in-javascript-url.html

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) 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/http/tests/security/xss-DENIED-synchronous-frame-load-in-javascript-url.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-synchronous-frame-load-in-javascript-url.html b/third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-synchronous-frame-load-in-javascript-url.html
deleted file mode 100644
index 470c620bc64fafcbf462a43c4a24496a7cd1ab10..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-synchronous-frame-load-in-javascript-url.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.setCanOpenWindows();
- testRunner.setCloseRemainingWindowsWhenComplete(true);
-}
-
-window.onload = function()
-{
- victim = document.body.appendChild(document.createElement("iframe"));
- wnd = victim.contentWindow.open();
- victim.src = "http://localhost:8080/security/resources/innocent-victim.html";
- victim.onload = function() {
- victim.onload = null;
-
- wnd.eval("(" + function() {
- location = "javascript:(" + function() {
- a = document.createElement("a");
- a.href = "about:blank";
- e = document.createEvent("MouseEvent");
- e.initMouseEvent("click");
- a.dispatchEvent(e);
-
- return "<script>(" + function() {
- opener.location = "javascript:alert(document.body.innerHTML)";
-
- if (window.testRunner)
- setTimeout("testRunner.notifyDone()", 0);
- } + ")()<\/script>";
- } + ")()";
- } + ")()");
- }
-}
-</script>
-</head>
-<body>
-This test passes if there's no alert dialog.
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698