Forcing reload of browser/omni.ja

Discuss building things with or for the Mozilla Platform.
Post Reply
wyngnut
Posts: 1
Joined: November 30th, 2016, 2:15 pm

Forcing reload of browser/omni.ja

Post by wyngnut »

Hi,

I am making modifications to some of the browser js files. The changes seem to get ignored unless I delete the profile.

Looking on the web, I see that you need to delete the associated jsm, but I don't see a jsm for chrome/browser/content/browser/browser.js.

Is there a way to force an update of the cache?

Thanks!
morat
Posts: 6394
Joined: February 3rd, 2009, 6:29 pm

Re: Forcing reload of browser/omni.ja

Post by morat »

Gecko has a javascript cache, which is not automatically cleared across restarts. To clear the cache when restarting, add a -purgecaches flag to the executable commandline.

i.e.

firefox.exe -purgecaches
FirefoxPortable.exe -purgecaches

If that doesn't work, then try to delete the binary version of the file in the jsloader folder.

Similar threads:

http://forums.mozillazine.org/viewtopic ... &t=2839949
http://forums.mozillazine.org/viewtopic ... &t=2457053
Post Reply