blob: a6b54a1fe164a474f4e2257260378346bec97179 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
window[0] = {
a: "1",
f: function() {
alert("FAIL: Child called parent.f()");
}
};
</script>
<iframe src="data:text/html,<script>alert(parent[0].a);</script><script>parent[0].f();</script>"></iframe><br>
This test passes if the access is forbidden.