OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <iframe id="x" name="x"></iframe> |
| 4 <script> |
| 5 var frame = document.getElementById('x'); |
| 6 if (window.testRunner) { |
| 7 testRunner.waitUntilDone(); |
| 8 testRunner.setXSSAuditorEnabled(true); |
| 9 testRunner.dumpAsMarkup(); |
| 10 testRunner.dumpChildFramesAsMarkup(); |
| 11 testRunner.setViewSourceForFrame('x', true); |
| 12 frame.onload = testRunner.notifyDone.bind(testRunner); |
| 13 } |
| 14 frame.src = '/security/xssAuditor/resources/echo-intertag.pl?q=%3cdiv%20onmouseo
ver=%22alert(/xss/)%22%%3e%3c/div%3e'; |
| 15 </script> |
| 16 <p>This test passes if the iframe is rendered in view-source mode and the div wi
th the |
| 17 onmouseover handler is in a highlighted span.</p> |
| 18 </html> |
OLD | NEW |