Am Dienstag, 1. Februar 2011 06:16:50 UTC+1 schrieb johnjbarton: > I recall reading some rumors about Components.utils.import being cached > in such a way that devs can't change the source and see changes. Any > truth to this? Any workaround if true? (Other than the rumored > requirement to change the file names!). > > jjb
I can confirm this issue: Using Firefox 14.01 and using utils.import to load user scripts from the Firefox profile directory does not work as expected: Changes to the imported files do not take effect after a Firefox restart. I also tried unload without success: Components.utils.unload("file://" + filePath); Components.utils.import("file://" + filePath); However, sometimes (I cannot reproduce when exactly) after several restarts Firefox seems to drop the cache and read the file again. I'm curious for any workaround. It would be cool to reimport a modified file without a restart. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform