MozillaZine

Forcing reload of browser/omni.ja

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

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

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: 2276
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.

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:

viewtopic.php?f=27&t=2839949
viewtopic.php?f=38&t=2457053

Return to Mozilla Development


Who is online

Users browsing this forum: No registered users and 1 guest

cron