From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../client/styleeditor/test/sjs_huge-css-server.sjs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 devtools/client/styleeditor/test/sjs_huge-css-server.sjs (limited to 'devtools/client/styleeditor/test/sjs_huge-css-server.sjs') diff --git a/devtools/client/styleeditor/test/sjs_huge-css-server.sjs b/devtools/client/styleeditor/test/sjs_huge-css-server.sjs new file mode 100644 index 0000000000..480fb1ca91 --- /dev/null +++ b/devtools/client/styleeditor/test/sjs_huge-css-server.sjs @@ -0,0 +1,19 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ +"use strict"; + +function handleRequest(request, response) { + response.setStatusLine(request.httpVersion, 200, "Och Aye"); + + response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); + response.setHeader("Pragma", "no-cache"); + response.setHeader("Expires", "0"); + response.setHeader("Content-Type", "text/plain; charset=utf-8", false); + + // Taken from devtools/shared/webconsole/network-monitor + const NETMONITOR_LIMIT = 1048576; + + // 2 * NETMONITOR_LIMIT reaches the exact limit for the netmonitor + // 3 * NETMONITOR_LIMIT makes sure we go past it. + response.write("x".repeat(3 * NETMONITOR_LIMIT)); +} -- cgit v1.2.3