application: clear the startup-cache at startup
commit937e4f70190a4aba64b15b3aac4a9e3e825e3cda
authorJohn Foerch <jjfoerch@earthlink.net>
Mon, 17 Oct 2011 17:39:32 +0000 (17 13:39 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Mon, 17 Oct 2011 17:47:21 +0000 (17 13:47 -0400)
tree1248e658aba02ab2dae65b4f102108d77b1dbb37
parent2883e9c5407d9fd3a49959ccaafdf1a6705c5040
application: clear the startup-cache at startup

Since XULRunner 8, mozIJSSubScriptLoader.loadSubScript uses the
startup-cache to speed up loading of javascript.  Since this is what
conkeror uses for its basic 'load' procedure, this causes a problem ---
modules and user-config may be loaded from cached copies.  Mozilla does
not perform any checks to see whether the files have changed.

In light of this, we should consider whether the whole module system
should be scrapped, but for as long as we use loadSubScript, this
workaround will be necessary.  Alternatively, if Mozilla could provide
more fine-grained control over the startup-cache, to allow invalidation of
particular entries, that may also lay the way for a permanent solution.
components/application.js