Page 1 of 1

NoScript blocks site when scripts allowed globally

Posted: Thu Jul 20, 2017 11:41 pm
by Steve_R
Hi,

Firefox 54.0.1.6488
Windows 10 build 1703

In Firefox I am getting weather site content blocked despite NoScript permissions being allowed for the site and despite Whitlisting the site. For example The following web page should show a chart relating to predicted wind speed. With NoScript running, I do not see it.
http://wind.willyweather.com.au/nsw/syd ... beach.html

The only way I can get the data to display is to disable No Script.

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 12:07 am
by barbaz
Do you have any sites Marked as Untrusted?

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 1:48 am
by Steve_R
No I always handle allowing access one site at a time rather than mark any as untrusted but I checked in any case. Nothing is listed.

Testing now the only three listed against Willyweather in NoScript are
Willyweather - Allowed
Googletagmanager - temporarily allowed
Googletagservices - temporarily allowed
Image

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 2:23 am
by barbaz
Actually I think you might have found a NoScript bug. Thanks for the report

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 2:47 am
by barbaz
If you go to about:config and set noscript.surrogate.googletag.replacement to -

Code: Select all

if(typeof googletag==='undefined'){googletag={slots:{},cmd:$S({__noSuchMethod__:function(){return $S(this)},push:function(f){return f()}})};}googletag.defineSlot=function(){return $S({__noSuchMethod__:function(){return $S(this)}})};let _gt=googletag;googletag=new Proxy(_gt,{get:function(s,w,e){return w in s?s[w]:function(){return $S({__noSuchMethod__:function(){return googletag;}})};}});let _renderedAds=new Proxy({},{get:function(a,b){return b in a?a[b]:{size:[729,90]};}});let _adsRenderedInfo=new Proxy({get:function(n){return _renderedAds[n];}},{get:function(x,c){return c in x?x[c]:function(){};},set:function(x,c,v){}});Object.defineProperty(googletag,'adsRenderedInfo',{configurable:true,enumerable:true,set:function(){},get:function(){return _adsRenderedInfo;}});
... does it work?

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 3:18 am
by Steve_R
Perfectly.
Thank you.

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 3:49 am
by barbaz
Thanks for the feedback. I'll let Giorgio know soon.

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 7:39 pm
by Giorgio Maone
@barbaz, should I update the googletag surrogate? Thanks!

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 8:46 pm
by barbaz
@Giorgio yes please 8-)

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 10:11 pm
by Giorgio Maone
Should be fixed in latest development build 5.0.7rc2, please check, thanks.

Re: NoScript blocks site when scripts allowed globally

Posted: Fri Jul 21, 2017 10:20 pm
by barbaz
Looks good to me, thank you Giorgio! Image

@Steve_R With NoScript 5.0.7rc2 and above, the site should still work if you reset noscript.surrogate.googletag.replacement to default value (right-click it > Reset). Does it work for you?

Re: NoScript blocks site when scripts allowed globally

Posted: Sat Jul 22, 2017 4:21 am
by Guest
barbaz wrote:Looks good to me, thank you Giorgio! Image

@Steve_R With NoScript 5.0.7rc2 and above, the site should still work if you reset noscript.surrogate.googletag.replacement to default value (right-click it > Reset). Does it work for you?
It works.
It's a shame the wave height information it gave me didn't work as well. No fish today :cry: