gecko/content/xbl/test/file_bug481558css.sjs
Jonas Sicking 4d0ff5ac14 Bug 481558: Don't apply XBL that isn't located in the same domain as the bound document. r/sr=bz
--HG--
extra : rebase_source : 6ef8c8ffcf8d9df0f6f9a0cdadd45f12564d7e37
2009-03-09 23:15:06 -07:00

18 lines
467 B
JavaScript

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