Page 1 of 1

Noscript duplicates links

Posted: Mon Mar 21, 2016 5:48 pm
by Stockbrot
Hey there!

Here are some information to reproduce the error:

Browser = Firefox 45.0 Linux / Ubuntu
Noscript 2.9.0.9
Code: https://tobkno.lima-city.de/temp/

Noscript takes the link from inside the nav-tag and duplicates it before the </body> tag.
The link then has the style="visibility: visible; display: block;" - thing in it.

With disabled Noscript or temporarily allowed scripts the link after the red area (header) isnt there (so it's as it should be).
This is no JavaScript error cause when I disable JavaScript in about:config the error doesnt occur.

There is another page that got this error: https://tobkno.lima-city.de/firefoxsettings.html

Screenshots:
http://thewebdesignforum.co.uk/uploads/ ... 578863.png
http://thewebdesignforum.co.uk/uploads/ ... 579672.png

Thanks for helping!

Stockbrot

Re: Noscript duplicates links

Posted: Mon Mar 21, 2016 6:10 pm
by barbaz
As a test, try changing this setting, see if it makes any difference:
NoScript Options > Advanced > Untrusted, un-check "Attempt to fix JavaScript links"

Re: Noscript duplicates links

Posted: Mon Mar 21, 2016 6:22 pm
by Stockbrot
barbaz wrote:As a test, try changing this setting, see if it makes any difference:
NoScript Options > Advanced > Untrusted, un-check "Attempt to fix JavaScript links"
I dont use any JavaScript, those links are not JavaScript-links. The setting didnt work for me. Could you reproduce the error?

Re: Noscript duplicates links

Posted: Mon Mar 21, 2016 7:34 pm
by barbaz
Yes, I can reproduce it, but I'm not sure what other NS feature would be messing with a page like that... Image

I'll play around with it and get back to you.

Re: Noscript duplicates links

Posted: Mon Mar 21, 2016 8:07 pm
by barbaz
Now this is interesting... the problem is not there viewing the page as a local file, but if I put it up on my local server then the problem does occur. So it's not related to anything the server is doing.

Minimal testcase:

Code: Select all

<!DOCTYPE html>
<div><a href="#" style="display:none;">Foo</a>
testing</div>

Re: Noscript duplicates links

Posted: Tue Mar 22, 2016 12:42 pm
by Stockbrot
barbaz wrote: Minimal testcase:

Code: Select all

<!DOCTYPE html>
<div><a href="#" style="display:none;">Foo</a>
testing</div>
Thanks for the minimal testcase! I hope some more people are looking over this :)

Re: Noscript duplicates links

Posted: Tue Mar 22, 2016 2:06 pm
by barbaz
This is definitely a feature and not a bug. I'd be searching NoScript's source code if I had some idea what to look for... do you have any suggestions?

Re: Noscript duplicates links

Posted: Wed Mar 23, 2016 11:53 am
by Stockbrot
barbaz wrote:This is definitely a feature and not a bug. I'd be searching NoScript's source code if I had some idea what to look for... do you have any suggestions?
I'm sry that I have no idea where to search for the feature if it is one. :/

Re: Noscript duplicates links

Posted: Wed Mar 23, 2016 2:00 pm
by barbaz
The problem is, there are so many different ways to do something like that, I can't think what string would be required... guess I'll start with those CSS properties and use some regex and hope something turns up :|

Re: Noscript duplicates links

Posted: Wed Mar 23, 2016 2:21 pm
by barbaz
Got it! 8-)

about:config > noscript.jsredirectIgnore