mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 21:50:42 -10:00
This makes it possible to run the service workers tests using --run-until-failure, which will hopefully help with reproducing intermittent test failures.
12 lines
358 B
JavaScript
12 lines
358 B
JavaScript
function handleRequest(request, response) {
|
|
if (request.queryString == 'clearcounter') {
|
|
setState('counter', '');
|
|
} else if (!getState('counter')) {
|
|
response.setHeader("Content-Type", "application/javascript", false);
|
|
response.write("callByScript();");
|
|
setState('counter', '1');
|
|
} else {
|
|
response.write("no cache no party!");
|
|
}
|
|
}
|