[webkit-changes] cvs commit: WebCore/manual-tests/resources
window-close-during-parsing-popup1.html
window-close-during-parsing-popup2.html
Geoffrey
ggaren at opensource.apple.com
Mon Nov 7 13:21:07 PST 2005
ggaren 05/11/07 13:21:07
Modified: . ChangeLog
Added: manual-tests window-close-during-parsing.html
manual-tests/resources
window-close-during-parsing-popup1.html
window-close-during-parsing-popup2.html
Log:
- Added manual test cases for <rdar://problem/4161660> window.close
followed by window.print in onload handler crashes Safari in
KJS::ScopeChain::bottom (redmccombstoyota.com)
* manual-tests/resources/window-close-during-parsing-popup1.html: Added.
* manual-tests/resources/window-close-during-parsing-popup2.html: Added.
* manual-tests/window-close-during-parsing.html: Added.
Revision Changes Path
1.342 +10 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.341
retrieving revision 1.342
diff -u -r1.341 -r1.342
--- ChangeLog 7 Nov 2005 20:52:05 -0000 1.341
+++ ChangeLog 7 Nov 2005 21:21:03 -0000 1.342
@@ -1,3 +1,13 @@
+2005-11-07 Geoffrey Garen <ggaren at apple.com>
+
+ - Added manual test cases for <rdar://problem/4161660> window.close
+ followed by window.print in onload handler crashes Safari in
+ KJS::ScopeChain::bottom (redmccombstoyota.com)
+
+ * manual-tests/resources/window-close-during-parsing-popup1.html: Added.
+ * manual-tests/resources/window-close-during-parsing-popup2.html: Added.
+ * manual-tests/window-close-during-parsing.html: Added.
+
2005-11-07 Darin Adler <darin at apple.com>
Reviewed by Tim Omernick.
1.1 WebCore/manual-tests/window-close-during-parsing.html
Index: window-close-during-parsing.html
===================================================================
<html>
<body>
<p>This test checks a window.close called in the midst of parsing a page.
Click the buttons below to load the test pages.
</p>
<hr>
<input type=button value="Run Test 1" onclick='window.open("resources/window-close-during-parsing-popup1.html")'>
<p>If this test passes, you should see 'PASS: same script tag after close,'
but nothing else. In particular, you should not see onload or onunload
fire.
</p>
<hr>
<input type=button value="Run Test 2" onclick='window.open("resources/window-close-during-parsing-popup2.html")'>
<p>If this test passes, you should see a window open and then close.
If it fails, Safari will crash.
</p>
</body>
</html>
1.1 WebCore/manual-tests/resources/window-close-during-parsing-popup1.html
Index: window-close-during-parsing-popup1.html
===================================================================
<html>
<body onload="alert('FAIL: onload fired')" onunload="alert('FAIL: onunload fired')">
<script>
window.close();
alert('PASS: same script tag after close');
</script>
<script>
alert('FAIL: different script tag after close');
</script>
</body>
</html>
1.1 WebCore/manual-tests/resources/window-close-during-parsing-popup2.html
Index: window-close-during-parsing-popup2.html
===================================================================
<html>
<body onload="window.print()">
<script>
window.close()
</script>
</body>
</html>
More information about the webkit-changes
mailing list