Index: third_party/WebKit/LayoutTests/http/tests/security/synchronous-frame-load-in-javascript-url-inherits-correct-origin.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/synchronous-frame-load-in-javascript-url-inherits-correct-origin.html |
similarity index 79% |
rename from third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-synchronous-frame-load-in-javascript-url.html |
rename to third_party/WebKit/LayoutTests/http/tests/security/synchronous-frame-load-in-javascript-url-inherits-correct-origin.html |
index 470c620bc64fafcbf462a43c4a24496a7cd1ab10..7d2f0c7121c81b4e39cb102414a93564f3d7f562 100644 |
--- 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/synchronous-frame-load-in-javascript-url-inherits-correct-origin.html |
@@ -20,12 +20,10 @@ window.onload = function() |
location = "javascript:(" + function() { |
a = document.createElement("a"); |
a.href = "about:blank"; |
- e = document.createEvent("MouseEvent"); |
- e.initMouseEvent("click"); |
- a.dispatchEvent(e); |
+ a.click(); |
return "<script>(" + function() { |
- opener.location = "javascript:alert(document.body.innerHTML)"; |
+ opener.location = "javascript:alert(location)"; |
if (window.testRunner) |
setTimeout("testRunner.notifyDone()", 0); |
@@ -37,6 +35,6 @@ window.onload = function() |
</script> |
</head> |
<body> |
-This test passes if there's no alert dialog. |
+<p>This test passes if the alerted location is the same origin as the main frame. |
</body> |
</html> |