diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:52 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:30:52 -0800 |
commit | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (patch) | |
tree | 11425ea0b299d6fb89c6d3618a22d97d5bf68d0f /WebCore/manual-tests/stale-currentEvent.html | |
parent | 648161bb0edfc3d43db63caed5cc5213bc6cb78f (diff) | |
download | external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.zip external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.gz external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebCore/manual-tests/stale-currentEvent.html')
-rw-r--r-- | WebCore/manual-tests/stale-currentEvent.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/WebCore/manual-tests/stale-currentEvent.html b/WebCore/manual-tests/stale-currentEvent.html new file mode 100644 index 0000000..e9dfcfc --- /dev/null +++ b/WebCore/manual-tests/stale-currentEvent.html @@ -0,0 +1,57 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html lang="en"> +<head> + <script type="text/javascript"> + var inner_win; + + function open_inner() + { + var src = 'data:text/html,<title>Pop up</title><input type="button" value="Close" onclick="opener.closeChild()">'; + var tp = document.getElementById("theparent"); + inner_win = window.open(src, 'inner', 'width=200, height=200, left=' + (screenLeft + tp.offsetLeft) + ', top=' + (screenTop + outerHeight - innerHeight + tp.offsetTop)); + } + + function removeHoverNode() + { + var tp = document.getElementById("theparent"); + tp.parentNode.removeChild(tp); + setTimeout(reportSuccess, 500); + } + + function reportSuccess() + { + document.body.appendChild(document.createTextNode("SUCCESS")); + } + + function closeChild() + { + inner_win.close(); + document.body.offsetTop; + setTimeout(removeHoverNode, 100); + } + </script> +</head> +<body> +<p><b>BUG ID:</b> <a href="rdar://problem/5095977">5095997</a> (<a href="http://bugs.webkit.org/show_bug.cgi?id=13218">13218</a>) Reproducible crash after call to window.close()</p> + +<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b><br> + 1. Click the Open button below. A pop up window will open.<br> + 2. In the pop up window, click the Close button, being careful not to + move the mouse during and shortly after clicking. +</p> + +<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> + The black square will be replaced by the word “SUCCESS” and Safari will not crash. +</p> + +<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b> + Safari will crash (the word “SUCCESS” may appear before the crash). +</p> + <div id='theparent'> + <input type="button" value="Open" onclick="open_inner()"> + <div style="background: black; width: 200px; height:200px"> + </div> + </div> +</body> +</html> |