caps/tests/mochitest/file_bug1367586-redirect.sjs
author Ted Campbell <tcampbell@mozilla.com>
Thu, 26 Jan 2023 15:53:21 +0000
changeset 650660 4af274d4ee613437631074174934b5739d002880
parent 596155 e2b5e618de42b6de694ca95e75e9bd442c2ff9ff
permissions -rw-r--r--
Bug 1811411 - Add profiler marker when discarding JitCode r=jandem Similar to the Discard marker, it seems useful to have a profile marker for discard events since they can toss a lot of Jit code. Differential Revision: https://phabricator.services.mozilla.com/D167896

function handleRequest(aRequest, aResponse) {
  aResponse.setStatusLine(aRequest.httpVersion, 302, "Moved");
  aResponse.setHeader(
    "Location",
    "http://mochi.test:8888/tests/caps/tests/mochitest/file_bug1367586-target.html"
  );
  aResponse.write("To be redirected to target");
}