Hello. How do I get path to profile directory using OS.File?
https://developer.mozilla.org/pl/docs/Mozilla/JavaScript_code_modules/OSFile.jsm/OS.File_for_the_main_thread#OS.File.open
Currently:
let file = Components.classes["@mozilla.org/file/directory_service;1"].
getService(Components.interfaces.nsIProperties).
get("ProfD", Components.interfaces.nsIFile);
How can I test XPCOM interfaces outside of my addon? I tried using firebug/firefox console but it doesn’t work there. There is something like xpcom shell… but I have to compile firefox on my own.