The following surrogate (which Giorgio Maone helped me with) has stopped working for me some time in the last two weeks for the https://easyweb.tdcanadatrust.com/ bank web site, after working for a over a year.
noscript.surrogate.nce.sources=@easyweb*.tdcanadatrust.com
noscript.surrogate.nce.replacement=navigator.__defineGetter__("cookieEnabled",function(){var ed=new Date; ed.setTime(0); var tc="__noscriptTestCookie_"+Math.round((Math.random()*99999)).toString(16)+"=1";document.cookie=tc;var ok=document.cookie.indexOf(tc)>-1;document.cookie=tc+";expires="+ed.toGMTString();return ok});
I think this is a NoScript regression, because I've tried several variations (eg. using '@', '!' or no prefix for the sources entry, trying '*' instead of 'easyweb*' for the sources, and using just this for the replacement:
noscript.surrogate.nce.replacement;navigator.__defineGetter__("cookieEnabled",function(){return true});
The problem happens with both the latest stable version 1.9.9.87 and the current development version 1.9.9.89.
Recent surrogate regression
-
- Posts: 2
- Joined: Sun Jun 13, 2010 2:59 pm
Recent surrogate regression
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
- Giorgio Maone
- Site Admin
- Posts: 9527
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Recent surrogate regression
Please check latest development build, thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
-
- Posts: 2
- Joined: Sun Jun 13, 2010 2:59 pm
Re: Recent surrogate regression
That fixes it! Thanks for the quick fix!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)