blob: 4d1a22df0aeec362a252097ae58125d7f2e11ff8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description("Verify that creating speech recognition in detached iframe does not crash.");
if (window.testRunner)
jsTestIsAsync = true;
function detachFrame() {
document.getElementById('iframe').remove();
setTimeout(() => { finishJSTest(); }, 0);
}
</script>
<iframe id="iframe" srcdoc="<script>parent.detachFrame(); new webkitSpeechRecognition();</script>"></iframe>
</body>
</html>