005b.html (607B)
1 <!DOCTYPE HTML> 2 <script> 3 var t = parent.opener.t; 4 var do_test = t.step_func(function () { 5 localStorage.test6564729 += '5'; 6 var s = 'FAIL: document.open() has canceled the navigation (' + localStorage.test6564729 + ')'; 7 parent.document.open(); 8 parent.document.write(s); 9 parent.document.close(); 10 localStorage.test6564729 += parent.document.body.textContent.match('FAIL') == s ? 'X' : '6'; 11 localStorage.test6564729 += '7'; 12 }); 13 </script> 14 <body onbeforeunload="localStorage.test6564729 += '2'" 15 onpagehide="do_test()" 16 onunload="localStorage.test6564729 += '8'"> 17 <p>Inner frame