test page: <script src="script.js"></script>
The above policy prevents script fetching in Fx 3.6 but not in 4 & 5
Last good nightly: 2010-05-03
First bad nightly: 2010-05-04
Sounds like the HTML5 parser prefetch at work. The script is not executed, of course. I suppose we can condition it for scripts on whether script is enabled for the document...
In particular, nsScriptLoader::ProcessScriptElement does an enabled check, but nsScriptLoader::PreloadURI does not.
Jonas, any objections to adding it?
Created attachment 543332 [details] [diff] [review]
When scripts are disabled, don't bother preloading them.
This bug fix is listed on Firefox 8 for developers.