| Index: LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html
|
| diff --git a/LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html b/LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6efa496ae8627f382b047a74b70918e60059c2d7
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/xmlhttprequest/resources/xmlhttprequest-in-unload-sync.html
|
| @@ -0,0 +1,22 @@
|
| +<html>
|
| +<head>
|
| +<script>
|
| +window.onunload = function () {
|
| + try {
|
| + var url = '1251.html';
|
| + var xhr = new XMLHttpRequest();
|
| + xhr.open('GET', url, false);
|
| + xhr.send(null);
|
| + window.parent.completed("PASS: sync XHR completed successfully");
|
| + } catch (e) {
|
| + window.parent.completed("FAIL: sync XHR during unload failed: " + e.message);
|
| + }
|
| +};
|
| +window.onload = function () {
|
| + window.parent.subframeLoaded();
|
| +};
|
| +</script>
|
| +</head>
|
| +<body>
|
| +</body>
|
| +</html>
|
|
|