Page 1 of 1

Recent surrogate regression

Posted: Sun Jun 13, 2010 4:23 pm
by afternoonnap
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.

Re: Recent surrogate regression

Posted: Sun Jun 13, 2010 5:57 pm
by Giorgio Maone
Please check latest development build, thanks.

Re: Recent surrogate regression

Posted: Sun Jun 13, 2010 9:11 pm
by afternoonnap
That fixes it! Thanks for the quick fix!