I'm working on a restartless firefox addon. Using firefox developer edition v36. The MDN page on the Dom File API claims that you can import File
as:
const {File, Services} = Cu.import('resource://gre/modules/Services.jsm', {});
But Services.jsm clearly does not export a File Object. I also tried:
new contentWindow.File( filename )
But this gives a very descriptive NS_ERROR_FAILURE.
Any clues are welcome, thanks