NoScript blocks site when scripts allowed globally

Ask for help about NoScript, no registration needed to post
Steve_R

NoScript blocks site when scripts allowed globally

Post 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.
Mozilla/5.0 (Windows NT 10.0; rv:54.0) Gecko/20100101 Firefox/54.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript blocks site when scripts allowed globally

Post by barbaz »

Do you have any sites Marked as Untrusted?
*Always* check the changelogs BEFORE updating that important software!
-
Steve_R

Re: NoScript blocks site when scripts allowed globally

Post 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
Mozilla/5.0 (Windows NT 10.0; rv:54.0) Gecko/20100101 Firefox/54.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript blocks site when scripts allowed globally

Post by barbaz »

Actually I think you might have found a NoScript bug. Thanks for the report
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript blocks site when scripts allowed globally

Post 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?
*Always* check the changelogs BEFORE updating that important software!
-
Steve_R

Re: NoScript blocks site when scripts allowed globally

Post by Steve_R »

Perfectly.
Thank you.
Mozilla/5.0 (Windows NT 10.0; rv:54.0) Gecko/20100101 Firefox/54.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript blocks site when scripts allowed globally

Post by barbaz »

Thanks for the feedback. I'll let Giorgio know soon.
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript blocks site when scripts allowed globally

Post by Giorgio Maone »

@barbaz, should I update the googletag surrogate? Thanks!
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript blocks site when scripts allowed globally

Post by barbaz »

@Giorgio yes please 8-)
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: NoScript blocks site when scripts allowed globally

Post by Giorgio Maone »

Should be fixed in latest development build 5.0.7rc2, please check, thanks.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: NoScript blocks site when scripts allowed globally

Post 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?
*Always* check the changelogs BEFORE updating that important software!
-
Guest

Re: NoScript blocks site when scripts allowed globally

Post 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:
Mozilla/5.0 (Windows NT 10.0; rv:54.0) Gecko/20100101 Firefox/54.0
Post Reply