blob: 9e996384e6060c86008ac082b3fb962c75d591b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
"use strict";
let timer;
const DELAY_MS = 1000;
function handleRequest(request, response) {
response.processAsync();
timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
timer.init(
() => {
response.setHeader("Content-Type", "text/html", false);
response.write(
"<body>Slow loading page for netmonitor test. You should never see this.</body>"
);
response.finish();
},
DELAY_MS,
Ci.nsITimer.TYPE_ONE_SHOT
);
}
|