<!DOCTYPE html> | |
<html> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
function srcDocModify() { | |
iframe.srcdoc = ""; | |
} | |
function runTest() { | |
document = iframe.contentDocument; | |
document.execCommand("selectAll", false); | |
window.requestAnimationFrame(srcDocModify); | |
} | |
</script> | |
<body> | |
<p>This test passes if there is no crash.</p> | |
<iframe id="iframe" src="data:text/html,foo"></iframe> | |
<video onloadstart="runTest()"> | |
<source> | |
</body> | |
</html> |