XULRunner ignores updates on edited files

﹥>﹥吖頭↗ 提交于 2019-12-12 01:37:44

问题


I am writing a XUL application following the default structure for standalone XUL apps - that is, I have the following files:

./application.ini
./chrome
./chrome/chrome.manifest
./chrome/content
./chrome/content/main.xul
./chrome.manifest
./defaults
./defaults/preferences
./defaults/preferences/prefs.js

What bothers me is that sometimes I run my application with xulrunner, note something wrong and go change my main.xul file. However, when I run my application again with xulrunner, the presented window has not changed! After some time - usually some dozen minutes - my update appears when I run the application.

Is there some kind of cache for xulrunner? If so, could I disable it?

I am using xulrunner 2.0 on Mac OS X Snow Leopard.


回答1:


Yes, there is a XUL cache. To disable it you can add nglayout.debug.disable_xul_cache preference and set it to true. You can also run XULRunner with -purgecaches command line flag, this will clear XUL cache and all other caches as well (relevant once you move on to JavaScript modules or XPCOM components).



来源:https://stackoverflow.com/questions/6658585/xulrunner-ignores-updates-on-edited-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!