.JS are fetched from network even if scripts are disabled
.JS are fetched from network even if scripts are disabled
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
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
Re: .JS are fetched from network even if scripts are disable
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:
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
- 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
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...
Checking what can be done about it...
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Re: .JS are fetched from network even if scripts are disable
This appears to be a CAPS regression.
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 ?
Code: Select all
user_pref("capability.policy.default.javascript.enabled", "noAccess");
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Re: .JS are fetched from network even if scripts are disable
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
- 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
Worked around in latest development build, thanks.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Re: .JS are fetched from network even if scripts are disable
verifiedGiorgio Maone wrote:Worked around in latest development build, thanks.
Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Re: .JS are fetched from network even if scripts are disable
Verified. And impressed
with the speed of resolution.
+ Added to the list of software to be supported.
Thanks and Best Regards...

+ 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
Re: .JS are fetched from network even if scripts are disable
This problem remains for https scripts loaded from http and https pages
Fx 6.0b4, NS 2.1.2.6rc2
load as https:
load as http:
Please include the version in your "latest development build" posts. You started doing it briefly, then stopped.
Fx 6.0b4, NS 2.1.2.6rc2
load as https:
Code: Select all
<script src="script.js"></script>
Code: Select all
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
- 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
Fixed in 2.1.2.6rc3.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Re: .JS are fetched from network even if scripts are disable
verifiedGiorgio Maone wrote:Fixed in 2.1.2.6rc3.
Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0