Page 1 of 1

[RESOLVED] <noscript> element not shown when scripts blocked

Posted: Thu Jan 09, 2014 6:38 pm
by barbaz
http://noscript.net/getit#devel wrote:v 2.6.8.11rc10
=========================================================================
x [XSS] Fixed new inline script blocking approach (in Firefox Nightly)
not triggering NOSCRIPT element fallbacks
But NOSCRIPT elements are not shown in SeaMonkey nightly 20140109003001 when scripts are forbidden. The only possibly related message in the Error Console (seen only on SeaMonkey startup) is triggering the antispam filter...
Using NS 2.6.8.11rc10. Please port the abovementioned fix to SeaMonkey. TIA

EDIT it's working inside iframes but not on the top-level document :?:

Re: <noscript> element not shown when scripts are forbidden

Posted: Sat Jan 11, 2014 4:26 pm
by barbaz
Well it looks like I can work around in 2.6.8.12rc1 and nightly 20140111003001 by setting noscript.docShellJSBlocking to 2, but that's less than ideal due to this resultant bug and the fact that now going from a whitelisted page to a script-blocked page then hitting the "Back" button causes the whitelisted page to become script-blocked...

Re: <noscript> element not shown when scripts are forbidden

Posted: Sat Jan 11, 2014 6:58 pm
by Giorgio Maone
Please check latest development build 2.6.9.12rc2, thanks.

Re: <noscript> element not shown when scripts are forbidden

Posted: Sat Jan 11, 2014 7:08 pm
by barbaz
Sorry, same result with 2.6.8.12rc2...

Re: <noscript> element not shown when scripts are forbidden

Posted: Sat Jan 11, 2014 7:11 pm
by Giorgio Maone
Weird, testing page?
It seems to work for me with 20140111003001

Re: <noscript> element not shown when scripts are forbidden

Posted: Sat Jan 11, 2014 7:14 pm
by barbaz
Er, test page is on a local server. Will PM you the contents.

Re: <noscript> element not shown when scripts are forbidden

Posted: Sun Jan 12, 2014 5:17 pm
by Giorgio Maone

Re: <noscript> element not shown when scripts are forbidden

Posted: Mon Jan 13, 2014 11:11 pm
by Giorgio Maone
Work-around in latest development build 2.6.8.12rc3.

Re: <noscript> element not shown when scripts are forbidden

Posted: Mon Jan 13, 2014 11:15 pm
by barbaz
Confirmed fixed, thanks.

Re: <noscript> element not shown when scripts are forbidden

Posted: Fri Sep 25, 2015 11:01 am
by GiuseppeScollo
Hello, I'm a newcomer to this forum (but I installed NoScript long ago). The problem as per subject of this topic affects my FF install (41.0 for Ubuntu). The NoScript changelog for v. 2.6.9.32 reports: "Fixed NOSCRIPT elements not being shown in script-blocked pages on Firefox betas", my NoScript is v. 2.6.9.36, yet the problem is still hanging, apparently. I don't know how it was fixed, but I suspect it was by the "ugly hack" (Giorgio's words) in comment 6 to https://bugzilla.mozilla.org/show_bug.cgi?id=958962. The reason for suspicion is what I see under the Firebug HTML tab, when viewing a local webpage with Javascript forbidden by NoScript: by right-clicking on the <noscript> element I get the following as the top entry under the Style tab:

Code: Select all

noscript {
    display: none !important;
}
Now:
  • there is no such rule in my CSS styles;
  • it looks very much like it be the culprit for the problem at hand;
  • there's a little difference between the rule as displayed above and the way it is tested in the aforementioned hack: apart from missing newlines, a whitespace is in between "!" and "important" in the test string (unlike in the rule quoted above): might this be a reason why the fix wouldn't work (if that is the fix)?
Thanks in advance for your help.

Re: <noscript> element not shown when scripts are forbidden

Posted: Mon Sep 28, 2015 2:38 pm
by Giorgio Maone

Re: <noscript> element not shown when scripts are forbidden

Posted: Tue Sep 29, 2015 8:12 pm
by GiuseppeScollo
Great, thank you! I just reset all Options, it works fine.