file_bfcache_page2.html (326B)
1 <html> 2 <script> 3 var frameUnloaded = function() { 4 var u = new SpeechSynthesisUtterance('hi'); 5 u.addEventListener('end', function () { 6 opener.ok(true, 'Successfully spoke utterance from new frame.'); 7 opener.onDone(); 8 }); 9 speechSynthesis.speak(u); 10 }; 11 </script> 12 13 <body onpageshow="frameUnloaded()"></body></html>