xhr-with-pagehide-1.html (549B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <title> 5 Crashtest to make sure that a sync XHR during pageload doesn't prevent 6 pagehide event from firing. 7 </title> 8 <script> 9 function finishTest() { 10 // Visual indication that we got this far, for humans viewing the test: 11 document.documentElement.style.backgroundColor = "lime"; 12 13 // Actually finish the test: 14 document.documentElement.className = ""; 15 } 16 </script> 17 </head> 18 <body> 19 <iframe src="xhr-with-pagehide-1-helper.html"></iframe> 20 </body> 21 </html>