Backed out 2 changesets (bug 1881078, bug 1879806) for causing dt failures @ devtools...
[gecko.git] / netwerk / test / browser / early_hint_pixel_count.sjs
blobb59dd035de573acff8c51e7ef37937c195dd6737
1 "use strict";
3 function handleRequest(request, response) {
4   if (request.hasHeader("X-Early-Hint-Count-Start")) {
5     setSharedState("earlyHintCount", JSON.stringify({ hinted: 0, normal: 0 }));
6   }
7   response.setHeader("Content-Type", "application/json", false);
8   response.write(getSharedState("earlyHintCount"));