Index: LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessee-opened-frame.html |
diff --git a/LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessee-opened-frame.html b/LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessee-opened-frame.html |
index 2d5ec1eeedfc44eb82ac9ceceeea9e3fb8d18909..2ed4a6c045d0e26711ac64ed874c7337bf619bb4 100644 |
--- a/LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessee-opened-frame.html |
+++ b/LayoutTests/http/tests/security/dataURL/resources/foreign-domain-data-url-accessee-opened-frame.html |
@@ -4,15 +4,7 @@ |
<iframe id="aFrame"></iframe> |
<script> |
var url = "data:text/html,<html>" |
- + "<head>" |
- + "<scr" + "ipt>" |
- + "function loaded() {" |
- + "if (window.testRunner)" |
- + "testRunner.globalFlag = true;" |
- + "}" |
- + "</scri" + "pt>" |
- + "</head>" |
- + "<body onload='loaded();'>" |
+ + "<body>" |
+ "<p id='accessMe'>PASS: Access from the main frame was denied!</p>" |
+ "<p>Inner-inner iframe. This iframe (which is data: URL and whose parent is on a foreign domain) is the frame that the" |
+ " main frame is trying to access. It should not have access to it.</p>" |
@@ -20,6 +12,7 @@ |
+ "</html>"; |
var frame = document.getElementById('aFrame'); |
+ frame.onload = function () { window.opener.postMessage('run test', '*'); }; |
frame.src = url; |
</script> |
</body> |