summaryrefslogtreecommitdiffstats
path: root/dom/html/test/allowMedia.sjs
blob: f29619cd89e16777627b99ec62345e893852bff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

function handleRequest(req, resp) {
  resp.setHeader("Cache-Control", "no-cache", false);
  resp.setHeader("Content-Type", "text/plain", false);

  let stateKey = "allowMediaState";
  let state = getState(stateKey);
  setState(stateKey, req.queryString ? "FAIL" : "");
  resp.write(state || "PASS");
}