Fix #3 - also enables file glob patterns for all options. This tool is now fairly functional, though loading resources within a Firefox addon is somewhat inevitably clunky. Specific caveats:
ugly hash-y path (the self sdk cannot be accessed in all scopes, so the path sometimes needs to be hardcoded)
.jsm modules can be loaded with Components.utils.import but other things (e.g. .json, .js) don't have a consistent way to be pulled in
On the plus side, freedom.js does work just fine when pointed at a .json file (loads it and runs whatever module it has with it), so I think it will suffice for our tests.
Fix #3 - also enables file glob patterns for all options. This tool is now fairly functional, though loading resources within a Firefox addon is somewhat inevitably clunky. Specific caveats:
self
sdk cannot be accessed in all scopes, so the path sometimes needs to be hardcoded).jsm
modules can be loaded withComponents.utils.import
but other things (e.g..json
,.js
) don't have a consistent way to be pulled inOn the plus side,
freedom.js
does work just fine when pointed at a.json
file (loads it and runs whatever module it has with it), so I think it will suffice for our tests.