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

Bug reports and enhancement requests
Post Reply
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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 :?:
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

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

Post 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...
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post by Giorgio Maone »

Please check latest development build 2.6.9.12rc2, thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

Sorry, same result with 2.6.8.12rc2...
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post by Giorgio Maone »

Weird, testing page?
It seems to work for me with 20140111003001
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

Er, test page is on a local server. Will PM you the contents.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post by Giorgio Maone »

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post by Giorgio Maone »

Work-around in latest development build 2.6.8.12rc3.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

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

Post by barbaz »

Confirmed fixed, thanks.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1
GiuseppeScollo
Posts: 2
Joined: Fri Sep 25, 2015 9:06 am

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

Post 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.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post by Giorgio Maone »

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
GiuseppeScollo
Posts: 2
Joined: Fri Sep 25, 2015 9:06 am

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

Post by GiuseppeScollo »

Great, thank you! I just reset all Options, it works fine.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Post Reply