we did an AddIn including jslib like this:
Code: Select all
include('chrome://companyAddon/content/jslib/io/filesystem.js');
include('chrome://companyAddon/content/jslib/io/io.js');
include('chrome://companyAddon/content/jslib/io/rdf.js');
include('chrome://companyAddon/content/jslib/io/dir.js');
include('chrome://companyAddon/content/jslib/io/file.js');
include("chrome://companyAddon/content/jslib/io/fileUtils.js");
include("chrome://companyAddon/content/jslib/io/dirUtils.js");
include("chrome://companyAddon/content/jslib/utils/system.js");
// ... later in function ...
/* the language file is now encoded in utf 8 */
var fu = new FileUtils; // <- ERROR COMES UP HERE
var path = fu.chromeToPath("chrome://companyAddon/content/regify_addin_lng.csv");
var file = Cc[RF_FILE_LOCAL].createInstance(Ci.nsILocalFile);
file.initWithPath(path);
This worked fine until 31.7. Sadly, since updating to 38.0.1, the JS console returns
Code: Select all
Zeitstempel: 03.07.2015 12:59:17
Fehler: TypeError: FileUtils is not a constructor
Quelldatei: chrome://companyAddon/content/modules.js
Zeile: 394
Also, other jslib objects like DirUtils etc are also not available any more.
Does somebody know what happened and where I should start my search? Some known incompatibility?
Kukulkano