+2009-03-03 Alexey Proskuryakov <ap@webkit.org>
+
+ Reviewed by Adam Roben.
+
+ https://bugs.webkit.org/show_bug.cgi?id=4343
+ XMLHttpRequest doesn't work in a JavaScript-created window
+
+ The problem was fixed a while ago (r34506), just adding a test.
+
+ * http/tests/xmlhttprequest/request-from-popup-expected.txt: Added.
+ * http/tests/xmlhttprequest/request-from-popup.html: Added.
+
2009-03-02 Simon Fraser <simon.fraser@apple.com>
Reviewed by Adele Peterson
--- /dev/null
+<html><body>
+<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=4343">bug 4343</a>:
+XMLHttpRequest doesn't work in a JavaScript-created window.</p>
+<p id=result>FAIL</p>
+<script type="text/javascript">
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.setCanOpenWindows();
+ layoutTestController.waitUntilDone();
+}
+
+winRef=window.open();
+if (!winRef)
+ alert("Popup window could not be opened, please disable pop-up blocker");
+
+winRef.document.writeln("<html><body><script type='text/javascript'>");
+winRef.document.writeln("var req = new XMLHttpRequest();");
+winRef.document.writeln("req.onreadystatechange = result;");
+winRef.document.writeln("req.open('GET', 'request-from-popup.html', true);");
+winRef.document.writeln("req.send(null);");
+winRef.document.writeln("function result() { if (req.readyState == 4) { opener.document.getElementById('result').innerHTML='SUCCESS'; if (opener.layoutTestController) opener.layoutTestController.notifyDone(); window.close(); } }");
+winRef.document.writeln("<\/script><\/body><\/html>");
+winRef.document.close();
+</script></body></html>