On Mon, Sep 5, 2011 at 7:35 PM, Walter do Valle <w...@jfsc.jus.br> wrote: > Hi all > > I'm looking for a way to programmatically find the current Firefox profile > folder. I'm developing a digital signing solution entirely in web. In other > words, I'm developing a signed Java applet that reads the personal > certificate inside a PKCS#11 module configured in Firefox. My problem > resides in how to locate the path of current profile folder. I need it > because there are some files used for Firefox certificate repository. I was > trying some Javascript solution, however I fell in some security issues. As > far as I know is not possible simply to call a javascript that give me the > path. > If you guys know how to do that, please give me the trick. > Thanks in advance.
>From javascript, it is described here: https://developer.mozilla.org/en/Code_snippets/File_I%2F%2FO var file = Components.classes["@mozilla.org/file/directory_service;1"]. getService(Components.interfaces.nsIProperties). get("ProfD", Components.interfaces.nsIFile); Regards, Martijn _______________________________ > Walter > > > _______________________________________________ > dev-security mailing list > dev-security@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-security > -- Martijn Wargers - Help Mozilla! http://quality.mozilla.org/ http://wiki.mozilla.org/Mozilla_QA_Community irc://irc.mozilla.org/qa - /nick mw22 _______________________________________________ dev-security mailing list dev-security@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-security