dom/xbl/test/file_bug481558css.sjs
author James Kolb <jck1089@gmail.com>
Mon, 13 Jan 2014 13:29:48 +1300
changeset 163085 a956cec79aadb296926c3264cc301405dec75c73
parent 163082 243259fda9aba5900ae1492c991a0e7a541a584d
permissions -rw-r--r--
Bug 603488 part 3: Modified DrawTargetSkia to accept non-skia sourcesurfaces. r=nrc

function handleRequest(request, response)
{
  var query = {};
  request.queryString.split('&').forEach(function (val) {
    [name, value] = val.split('=');
    query[name] = unescape(value);
  });

  response.setHeader("Content-Type", "text/css", false);
  css = "#" + query.id + " { -moz-binding: url(\"";
  if (query.server) {
    css += "http://" + query.server + "/tests/dom/xbl/test/";
  }
  css += "file_bug481558.xbl#test\"); }";

  response.write(css);
}