.JS are fetched from network even if scripts are disabled

Bug reports and enhancement requests
Post Reply
Nemoar
Posts: 4
Joined: Thu Jun 30, 2011 9:46 am

.JS are fetched from network even if scripts are disabled

Post by Nemoar »

Hi,
To save bandwidth on I'm using NoScript, ImgLikeOpera.

After upgrading to Firefox 5.0b7 and NoScript 2.1.1.2 (dont know which version I was using previously) firefox began to fetch .js JavaScript files from the network EVEN if the scripts are disabled in NoScript. (This was not the case previously.)

Upgrading to NoScript 2.1.2rc0 and setting "noscript.allowCachingObjects -> False" at about:config did not help.

Please advise.
Best regards
Last edited by Nemoar on Sat Jul 02, 2011 9:54 pm, edited 1 time in total.
Mozilla/43.3 (X11; Linux x86_64; rv:7.45) Gecko/21991436 Firefox/9.7c1pr
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: .JS are fetched from network even if scripts are disable

Post by al_9x »

Confirming. This is not a recent regression, it exists in gecko>=2.0 with any NS version. Fx 3.6 is ok. Too bad this wasn't caught earlier, bypassing blocked script fetching is a valuable privacy and perf feature.

test page:

Code: Select all

<script src="script.js"></script>
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: .JS are fetched from network even if scripts are disable

Post by Giorgio Maone »

I suppose it's an artifact of script and CSS prefetching operated by most recent versions of Gecko for performance reasons.
Checking what can be done about it...
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: .JS are fetched from network even if scripts are disable

Post by al_9x »

This appears to be a CAPS regression.

Code: Select all

user_pref("capability.policy.default.javascript.enabled", "noAccess");
The above policy prevents script fetching in Fx 3.6 but not in 4 & 5. I'll file a bug, but in the meantime can you compensate by explicitly blocking them ?
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: .JS are fetched from network even if scripts are disable

Post by al_9x »

Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: .JS are fetched from network even if scripts are disable

Post by Giorgio Maone »

Worked around in latest development build, thanks.
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: .JS are fetched from network even if scripts are disable

Post by al_9x »

Giorgio Maone wrote:Worked around in latest development build, thanks.
verified
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Nemoar
Posts: 4
Joined: Thu Jun 30, 2011 9:46 am

Re: .JS are fetched from network even if scripts are disable

Post by Nemoar »

Verified. And impressed :) with the speed of resolution.
+ Added to the list of software to be supported. ;)

Thanks and Best Regards...
Mozilla/43.3 (X11; Linux x86_64; rv:7.45) Gecko/21991436 Firefox/9.7c1pr
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: .JS are fetched from network even if scripts are disable

Post by al_9x »

This problem remains for https scripts loaded from http and https pages

Fx 6.0b4, NS 2.1.2.6rc2

load as https:

Code: Select all

<script src="script.js"></script>
load as http:

Code: Select all

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
Please include the version in your "latest development build" posts. You started doing it briefly, then stopped.
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: .JS are fetched from network even if scripts are disable

Post by Giorgio Maone »

Fixed in 2.1.2.6rc3.
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: .JS are fetched from network even if scripts are disable

Post by al_9x »

Giorgio Maone wrote:Fixed in 2.1.2.6rc3.
verified
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
Post Reply