40 lines
1.0 KiB
HTML
40 lines
1.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
<html lang="en">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<p><b>BUG ID:</b> <a href="rdar://problem/4094363">rdar://problem/4094363</a> Can't re-open a window at capripalace.com website because "close" fails on already-closed window</p>
|
|
|
|
<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b>
|
|
<ol>
|
|
<li>Click the link below </li>
|
|
<li>Close the window that opens </li>
|
|
<li>Click the link again </li>
|
|
</ol>
|
|
</p>
|
|
|
|
<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
|
|
If the bug is fixed, a window WILL OPEN after Step #3.
|
|
</p>
|
|
|
|
<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
|
|
If the bug is not fixed, a window WILL NOT OPEN after Step #3.
|
|
</p>
|
|
|
|
<script language="JavaScript">
|
|
win = null;
|
|
function win_open() {
|
|
|
|
if (win != null) {
|
|
win.close();
|
|
}
|
|
win = window.open('about:blank');
|
|
}
|
|
</script>
|
|
|
|
<a href="javascript:win_open();">Click this link</a>
|
|
|
|
</body>
|
|
</html>
|