noscript speed regression

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

noscript speed regression

Post by ifdj »

For the past week with the latest Firefox Nightly and noscript dev versions the browser lags, which I've never seen before. Minimizing or un-minimizing a window causes a slight delay that wasn't apparently before.

Another example is the sunspider test, with noscript disabled i get 250ms but with it enabled i get 550ms.

OS is linux, only other addon is adblock plus

thanks
Mozilla/5.0 (X11; Linux i686; rv:8.0a1) Gecko/20110806 Firefox/8.0a1
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: noscript speed regression

Post by therube »

If you update the the latest #dev, v 2.1.2.6rc6, does it improve (or are you using rc6 already)?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110806 Firefox/6.0 SeaMonkey/2.3
ifdj

Re: noscript speed regression

Post by ifdj »

yup, was running that version of noscript when i made the post yesterday, tried it again today with noscript 2.1.2.6rc6 and the Aug 7th nightly with the same results.

If theres any other info you need please let me know
Mozilla/5.0 (X11; Linux i686; rv:8.0a1) Gecko/20110807 Firefox/8.0a1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript speed regression

Post by Giorgio Maone »

Confirmed, that looks like a Nightly-only problem, and not depending by any recent change in NoScript.
Could you try to find a regression window?
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript speed regression

Post by Giorgio Maone »

OK, I found the following:
  • The problem started with the July 29th nightly build
  • The problem is not NoScript-specific, but it affects any JavaScript-intensive page where window.watch() is used
  • You can work-around by disabling the "ab" surrogate, which uses window.watch on all HTTP pages: just set the noscript.surrogate.ab.sources about:config preference to an empty string
Filing a bug report at https://bugzilla.mozilla.org, since this is definitely a Firefox bug.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript speed regression

Post by Giorgio Maone »

Filed bug 677652.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: noscript speed regression

Post by al_9x »

Is the ab surrogate intended for http://www.antiblock.org/ ? If so, it's obsolete.

Currently their script relies on XMLHttpRequest.open throwing an exception for non-allowed domains ("Component returned failure code: ...") And their code and state is protected in a closure.

Since this is a general countermeasure to external script blocking, it probably makes sense to do something about it? I guess you could patch XMLHttpRequest.open or perhaps you could get it to not to throw without patching?
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: noscript speed regression

Post by Giorgio Maone »

al_9x wrote:I guess you could patch XMLHttpRequest.open or perhaps you could get it to not to throw without patching?
The way to make it not throw is setting noscript.forbidXHR to 0.

Otherwise a surrogate should wrap open and swallow the exception.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
Post Reply