Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 function handleRequest(request, response)
2 {
3 var query = {};
4 request.queryString.split('&').forEach(function (val) {
5 [name, value] = val.split('=');
6 query[name] = unescape(value);
7 });
9 response.setHeader("Content-Type", "text/css", false);
10 css = "#" + query.id + " { -moz-binding: url(\"";
11 if (query.server) {
12 css += "http://" + query.server + "/tests/dom/xbl/test/";
13 }
14 css += "file_bug481558.xbl#test\"); }";
16 response.write(css);
17 }