Skip to content

Commit c6ae4dd

Browse files
committed
NoScript addons.mozilla.org release 5.0.4rc1
1 parent 8755571 commit c6ae4dd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

xpi/chrome/content/noscript/Main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3740,7 +3740,7 @@ const ns = {
37403740
let channel = docShell.currentDocumentChannel;
37413741
if (channel instanceof Ci.nsIHttpChannel) {
37423742
let originalContentType = channel.getResponseHeader("Content-Type");
3743-
if (/\/json(?:;|^)/i.test(originalContentType) && channel.contentType === "text/html") blockIt = false;
3743+
if (/\/json(?:;|$)/i.test(originalContentType) && channel.contentType === "text/html") blockIt = false;
37443744
}
37453745
} catch (e) {
37463746
this.log(e)
@@ -4327,6 +4327,8 @@ const ns = {
43274327
if (!this.allowLocalLinks)
43284328
return fromPolicy;
43294329

4330+
if (!principal) return true;
4331+
43304332
if (url instanceof Ci.nsIURI) {
43314333
if (!url.schemeIs("file")) return fromPolicy;
43324334
url = url.spec;

xpi/install.rdf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<em:id>{73a6fe31-595d-460b-a920-fcc0f8843232}</em:id>
77
<em:name>NoScript</em:name>
8-
<em:version>5.0.3</em:version>
8+
<em:version>5.0.4rc1</em:version>
99
<em:description>Extra protection for your Firefox: NoScript allows JavaScript, Java (and other plugins) only for trusted domains of your choice (e.g. your home-banking web site). This whitelist based pre-emptive blocking approach prevents exploitation of security vulnerabilities (known and even unknown!) with no loss of functionality... Experts will agree: Firefox is really safer with NoScript :-)</em:description>
1010
<em:creator>Giorgio Maone</em:creator>
1111
<em:type>2</em:type>

0 commit comments

Comments
 (0)