Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / resources / frame-unload-crash-2.html
blob75e54a144c494f5a65a5f24a35cf63a380555e6e
1 <html>
2 <head>
3 <script>
4 // When we create an XHR from onunload, we expect it to be cancelled almost
5 // immediately afterwards. When that happens the XHR's onabort handler is
6 // called. The XHR created from there is cancelled again, but at a later point
7 // after this FRAME has already been detached from its parent.
8 var requests = [];
9 function startRequest() {
10 var x = new XMLHttpRequest();
11 x.open("GET", location, true);
12 x.onabort = startRequest;
13 x.send(null);
14 requests.push(x);
16 </script>
17 </head>
18 <body onunload="startRequest()"></body>
19 </html>