002-2.html (374B)
1 <!doctype html> 2 <script> 3 var result = "FAIL"; 4 if (opener != null) { 5 result = "FAIL (did you open this page in a new tab?)"; 6 } else { 7 var w = window.open("", "test_name"); 8 if (w.location.href !== "about:blank") { 9 result = "FAIL (didn't open an about:blank browsing context)"; 10 } else { 11 w.close(); 12 result = "PASS"; 13 } 14 document.write(result); 15 } 16 </script>