We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48690ee commit dac392dCopy full SHA for dac392d
1 file changed
src/bg/RequestUtil.js
@@ -1,6 +1,7 @@
1
'use strict';
2
{
3
let NULL = new Uint8Array();
4
+ let xmlFeedOrImage = /^(?:(?:application|text)\/(?:(?:r(?:ss|df)|atom)\+)?xml(;|$))|image\//i;
5
let brokenOnLoad = (async () => parseInt(await browser.runtime.getBrowserInfo().version) < 61);
6
let pendingRequests = new Map();
7
@@ -60,7 +61,7 @@
60
61
62
let content = this.getContentMetaData(request);
63
debug(request.url, content.type);
- if (/^[\w/+-]*\b(xml|image)\b/i.test(content.type) && !/\bhtml\b/i.test(content.type)) return;
64
+ if (xmlFeedOrImage.test(content.type) && !/\/svg\b/i.test(content.type)) return;
65
let filter = browser.webRequest.filterResponseData(requestId);
66
let buffer = [];
67
0 commit comments