content/xbl/test/file_bug481558css.sjs
author Honza Bambas <honzab.moz@firemni.cz>
Thu, 21 May 2009 00:27:31 +0200
changeset 28676 f1c65acaccf363aa6d073ef5b958320071848e38
parent 25971 c618d64cb0bffbadafd98571fe35d11b4e548632
permissions -rw-r--r--
Bug 455070 - Make sessionStorage object conform the WHATWG spec, r+sr=jst

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);
}