Ever since upgrading to Firefox 17.0.1, I have encountered an issue with PrivilegeManager no longer being supported. While some suggest that simply removing a line of code should fix the problem, it seems that is not the case for me.
Every time I try to run my code, I keep getting this error: TypeError: Components.classes is undefined. Could there have been changes related to Components.classes as well? The Mozilla Code Snippets page (https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O) mentions using the same syntax (without FileUtils.jsm).
This is the code in question:
//netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(filePath);