From a01c03e11ae4451aed817f0fd0708b71ec8b3ccd Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 6 Mar 2021 08:18:46 -0500 Subject: [PATCH] Fix no-scripting switch not working for SVG-based documents Issue spotted while trying the following page: - https://www.xul.fr/svgtetris.svg --- src/js/traffic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/traffic.js b/src/js/traffic.js index c4a37ae96..27ab87f06 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -533,7 +533,8 @@ const onHeadersReceived = function(details) { const contentType = headerValueFromName('content-type', responseHeaders); if ( reMediaContentTypes.test(contentType) ) { pageStore.allowLargeMediaElementsUntil = 0; - return; + // Fall-through: this could be an SVG document, which supports + // script tags. } }