Page 1 of 1

Oddity? Style Affected Before Leaving NoScript Menu

Posted: Sat Dec 27, 2014 3:43 pm
by therube
URL: http://www.techpowerup.com/downloads/SysInfo/GPU-Z/

Oddity? Style Affected Before Leaving NoScript Menu

Oh, is it a "style" even?

Anyhow

Allow techpowerup.com
then Allow tpucnd.com

With the second Allow, a dropdown box should display (on the Downloads in SysInfo › GPU-Z line).
[ Show latest versions | Show all versions ]

Open the NoScript menu
Forbid tpucnd.com

Immediately at that point, before you have left the NoScript menu, that dropdown box disappears

And then once you have left the menu, you'll see a jump with the box appearing for an instant, then disappearing again

Just an oddity? Or expected? Or?

Re: Oddity? Style Affected Before Leaving NoScript Menu

Posted: Sat Dec 27, 2014 10:01 pm
by barbaz
If the dropdown box is being displayed by JS, and can't be displayed at all if part of the JS it needs is stopped, that could happen.

The Forbid permission change takes effect in real time but Allow permission changes require something from the site to actually (re)load before having an effect.

I'll play with it a bit later see if I can reproduce / confirm that theory.

Re: Oddity? Style Affected Before Leaving NoScript Menu

Posted: Sat Dec 27, 2014 11:11 pm
by barbaz
Yup, reproducible. The dropdown has a class 'jsonly' - couple it with the following element

Code: Select all

<noscript class="noscript-show"><span><style>.jsonly { display: none !important; }</style></span></noscript>
and all becomes clear.

So nothing unexpected really.

Hope that helps.