Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / xss-DENIED-contentWindow-eval.html
blob8d903a9fec4e7c0ece2119d42895b08f8044282f
1 <body>
2 This test passes if alert() is not called.
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 i = document.body.appendChild(document.createElement("iframe"));
10 f = frames[0].eval('(function(){location="javascript:alert(location)"})');
11 i.src = "http://localhost:8000/security/resources/innocent-victim.html";
12 i.addEventListener("load", f);
13 i.addEventListener("load", function() {
14 if (window.testRunner)
15 testRunner.notifyDone();
16 });
17 </script>