2010-10-13 00:12:55 -07:00
|
|
|
function handleRequest(request, response)
|
|
|
|
{
|
2013-12-19 02:38:39 -08:00
|
|
|
if (request.queryString) {
|
|
|
|
let blockedResponse = null;
|
|
|
|
getObjectState("bug602838", function(x) { blockedResponse = x.wrappedJSObject.r });
|
|
|
|
blockedResponse.finish();
|
|
|
|
setObjectState("bug602838", null);
|
|
|
|
return;
|
|
|
|
}
|
2010-10-13 00:12:55 -07:00
|
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
|
|
response.setHeader("Content-Type", "text/javascript", false);
|
|
|
|
response.write("ok(asyncRan, 'Async script should have run first.'); firstRan = true;");
|
|
|
|
response.processAsync();
|
2013-12-19 02:38:39 -08:00
|
|
|
|
|
|
|
x = { r: response, QueryInterface: function(iid) { return this } };
|
|
|
|
x.wrappedJSObject = x;
|
|
|
|
setObjectState("bug602838", x);
|
2010-10-13 00:12:55 -07:00
|
|
|
}
|