Page 1 of 1

NoScript kills FTP folder sorting headers

Posted: Wed Sep 19, 2018 12:11 pm
by Rassilon
when visiting a whitelisted site, NoScript kills off the JavaScript table headers links created by Firefox to sort the folder view.
Currently i'm using NoScript v10.1.9.6 from AMO.

e.g. for the folder at
ftp://ftp.symantec.com/AVDEFS/symantec_antivirus_corp/
i made sure that symantec.com is whitelisted for all (not just https) accesses, but sorting the folder by clicking on the Last Modified column header or the Name header is impossible with NoScript active.

As soon as i disable the addon and i reload the folder listing, sorting FTP folder views is possible again... so, to avoid disabling the addon, i just use Google Chrome for FTP.

Any chance of ever fixing these Firefox UI elements?

Re: NoScript kills FTP folder sorting headers

Posted: Wed Sep 19, 2018 1:07 pm
by barbaz
I can confirm the behavior using my local ftp server. Firefox 62.0, NoScript latest development build 10.1.9.6rc3, new profile

It looks like the sorting is done with an inline script, which is being blocked by NoScript.

I don't need to completely disable NoScript to get this working. It's enough to "Disable restrictions for this tab".

Re: NoScript kills FTP folder sorting headers

Posted: Wed Sep 19, 2018 1:26 pm
by Rassilon
barbaz wrote:It's enough to "Disable restrictions for this tab".
Ooooooh, i just saw that option... :shock: didn't really notice it before. :oops: :D :D :D

Re: NoScript kills FTP folder sorting headers

Posted: Thu Sep 20, 2018 4:19 am
by therube
So why does Allow this tab & Allow Global work, where Allow symantec.com does not?

Note that when you Allow symantec.com, the NoScript icon does not change (from blocked).
Does this have to do with ftp:// or is there something else?

Re: NoScript kills FTP folder sorting headers

Posted: Wed Sep 26, 2018 2:12 pm
by Giorgio Maone
Using Appearance>List full addresses and setting ftp://ftp.symantec.com to TRUSTED (or doing the same manually from the "Per-site permissions" tab) works, too.
The problem is ..symantec.com implying https, http, but not ftp.
Fixing that in next release.
Also, I don't like this feature being implemented by the browser in a way that is broken by disabling JavaScript for FTP. It should work anyway. I'll check if I can do something to work around this, that I consider a longstanding Firefox bug.

Re: NoScript kills FTP folder sorting headers

Posted: Wed Sep 26, 2018 3:51 pm
by Giorgio Maone
Giorgio Maone wrote: Also, I don't like this feature being implemented by the browser in a way that is broken by disabling JavaScript for FTP. It should work anyway. I'll check if I can do something to work around this, that I consider a longstanding Firefox bug.
Please check latest development build:
v 10.1.9.7rc1
=============================================================
+ FTP directory UI emulation on script-disabled domains
x Include ftp:// URLs in non-secure domain matching (thanks
Rassilon for RFE)

Re: NoScript kills FTP folder sorting headers

Posted: Wed Sep 26, 2018 4:36 pm
by barbaz
Looks all fixed to me, thanks Giorgio! Image