Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 function handleRequest(request, response)
2 {
3 response.setHeader("Content-Type", "text/javascript", false);
4 if (request.queryString.indexOf("report") != -1) {
5 if (getState("loaded") == "loaded") {
6 response.write("ok(false, 'This script was not supposed to get fetched.');");
7 } else {
8 response.write("ok(true, 'This script was not supposed to get fetched.');");
9 }
10 } else {
11 setState("loaded", "loaded");
12 response.write("ok(false, 'This script is not supposed to run.');");
13 }
14 }