1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Fix no-scripting switch not working for SVG-based documents

Issue spotted while trying the following page:
- https://www.xul.fr/svgtetris.svg
This commit is contained in:
Raymond Hill 2021-03-06 08:18:46 -05:00
parent 8985cff2a8
commit a01c03e11a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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.
}
}