summaryrefslogtreecommitdiffstats
path: root/dom/base/test/bug1739957.sjs
blob: 38f5e72040ef365521c4940536c1521c121cde66 (plain)
1
2
3
4
5
6
7
8
9
10
function handleRequest(request, response) {
  if (request.queryString == "loaded") {
    response.write(getState("loaded") || "false");
    return;
  }

  setState("loaded", "true");
  response.setHeader("Content-Type", "image/svg+xml", false);
  response.write(`<svg xmlns="http://www.w3.org/2000/svg"></svg>`);
}