Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / window-named-proto.html
blobe5cdf075ba65d47118d1e33041ba8d92a54f5c62
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.waitUntilDone();
7 window.onload = function()
9 frame = document.body.appendChild(document.createElement("iframe"));
10 frame.src = "http://localhost:8080/security/resources/innocent-victim-with-iframe.html";
11 frame.onload = function() {
12 frame.onload = null;
14 frame.contentWindow[0].location = "data:text/html,<script>(" + function() {
16 setTimeout(function() {
17 if (window.testRunner)
18 testRunner.notifyDone();
19 }, 0);
21 window.name = "__proto__";
22 parent.__proto__.alert.constructor("alert(document.body.innerHTML)")();
23 } + ")()</scr" + "ipt>";
26 </script>