content/xbl/test/file_bug481558css.sjs
author Gene Lian <clian@mozilla.com>
Fri, 28 Sep 2012 14:02:28 +0800
changeset 108418 cba5ba69091f52840af3d8f738ac43bbcc256e6d
parent 25971 c618d64cb0bffbadafd98571fe35d11b4e548632
permissions -rw-r--r--
Bug 789973 - B2G system time: adjust system clock after receiving NITZ timestamp (part 1). r=jlebar

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/content/xbl/test/";
  }
  css += "file_bug481558.xbl#test\"); }";

  response.write(css);
}