2021-01-25 12:30:59 +00:00
|
|
|
<!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() {
|
2021-07-29 18:58:04 +00:00
|
|
|
document.getElementById('iframe').remove();
|
2021-01-25 12:30:59 +00:00
|
|
|
|
|
|
|
setTimeout(() => { finishJSTest(); }, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<iframe id="iframe" srcdoc="<script>parent.detachFrame(); new webkitSpeechRecognition();</script>"></iframe>
|
|
|
|
</body>
|
|
|
|
</html>
|