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.
9 function startRequest() {
10 var x
= new XMLHttpRequest();
11 x
.open("GET", location
, true);
12 x
.onabort
= startRequest
;
18 <body onunload=
"startRequest()"></body>