Zapomenutá kotvička "^" v (příliš obecném) regulárním výrazu.
Diff (snad) relevantní části:
chrome/content/noscript/Main.js
@@ -109,7 +109,7 @@ this.__defineGetter__("ABE", function() {
});
const ns = {
- VERSION: "5.1.8.6",
+ VERSION: "5.1.8.7",
classDescription: CLASS_NAME,
classID: Components.ID(SERVICE_ID),
contractID: SERVICE_CTRID,
@@ -3814,7 +3814,7 @@ const ns = {
let channel = docShell.currentDocumentChannel;
if (channel instanceof Ci.nsIHttpChannel) {
let originalContentType = channel.getResponseHeader("Content-Type");
- if (/\/json(?:;|$)/i.test(originalContentType) && channel.contentType === "text/html") blockIt = false;
+ if (/^(?:application|text)\/json(?:;|$)/i.test(originalContentType) && channel.contentType === "text/html") blockIt = false;
}
} catch (e) {
this.log(e)