mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00: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
1 changed files with 2 additions and 1 deletions
|
|
@ -533,7 +533,8 @@ const onHeadersReceived = function(details) {
|
||||||
const contentType = headerValueFromName('content-type', responseHeaders);
|
const contentType = headerValueFromName('content-type', responseHeaders);
|
||||||
if ( reMediaContentTypes.test(contentType) ) {
|
if ( reMediaContentTypes.test(contentType) ) {
|
||||||
pageStore.allowLargeMediaElementsUntil = 0;
|
pageStore.allowLargeMediaElementsUntil = 0;
|
||||||
return;
|
// Fall-through: this could be an SVG document, which supports
|
||||||
|
// script tags.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue