Forcing reload of browser/omni.ja

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

Post Posted November 30th, 2016, 2:19 pm


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?


Posts: 4488
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 2nd, 2016, 1:27 pm

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.


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:


Return to Mozilla Development

Who is online

Users browsing this forum: No registered users and 1 guest