From eb70e6e3d0bff11c25f14b1196025791bf2308fb Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 25 Feb 2020 15:07:00 -0500 Subject: Issue #439 - Remove tests from toolkit/ --- .../thumbnails/test/thumbnails_background.sjs | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 toolkit/components/thumbnails/test/thumbnails_background.sjs (limited to 'toolkit/components/thumbnails/test/thumbnails_background.sjs') diff --git a/toolkit/components/thumbnails/test/thumbnails_background.sjs b/toolkit/components/thumbnails/test/thumbnails_background.sjs deleted file mode 100644 index f1cce96a0..000000000 --- a/toolkit/components/thumbnails/test/thumbnails_background.sjs +++ /dev/null @@ -1,79 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - * http://creativecommons.org/publicdomain/zero/1.0/ */ - -// The timer never fires if it's not declared and set to this variable outside -// handleRequest, as if it's getting GC'ed when handleRequest's scope goes away. -// Shouldn't the timer thread hold a strong reference to it? -var timer; - -function handleRequest(req, resp) { - resp.processAsync(); - resp.setHeader("Cache-Control", "no-cache, no-store", false); - resp.setHeader("Content-Type", "text/html;charset=utf-8", false); - - let opts = {}; - try { - opts = JSON.parse(decodeURIComponent(req.queryString)); - } - catch (err) {} - - let setCookieScript = ""; - if (opts.setRedCookie) { - resp.setHeader("Set-Cookie", "red", false); - setCookieScript = ''; - } - - if (opts.setGreenCookie) { - resp.setHeader("Set-Cookie", "green", false); - setCookieScript = ''; - } - - if (opts.iframe) { - setCookieScript += '