Skip to content

Commit

Permalink
Fix no-scripting switch not working for SVG-based documents
Browse files Browse the repository at this point in the history
Issue spotted while trying the following page:
- https://www.xul.fr/svgtetris.svg
  • Loading branch information
gorhill committed Mar 6, 2021
1 parent 8985cff commit a01c03e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}

Expand Down

0 comments on commit a01c03e

Please sign in to comment.