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:
parent
8985cff2a8
commit
a01c03e11a
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user