| window.onload = function() |
| testRunner.dumpChildFramesAsText(); |
| testRunner.waitUntilDone(); |
| setTimeout(pollForTest, 1); |
| alert("This test requires it be run in DRT."); |
| if (!testRunner.globalFlag) { |
| setTimeout(pollForTest, 1); |
| var frame = document.getElementById('aFrame'); |
| frame.location = 'javascript:"FAIL: this should not have been loaded."'; |
| frame.location = ' javascript:"FAIL: this should not have been loaded."'; |
| frame.location = 'java\0script:"FAIL: this should not have been loaded."'; |
| frame.location = 'javascript\t:"FAIL: this should not have been loaded."'; |
| frame.location = 'javascript\1:"FAIL: this should not have been loaded."'; |
| <frame id='main' name='main' src="data:text/html,<p>This test passes as long as the word 'FAIL' and an accompanying message do not appear in the frame below.</p>"> |
| <frame id='aFrame' name='aFrame' src='http://localhost:8000/security/resources/cross-frame-iframe.html'> |