On Jul 8, 11:59 pm, "Karen Gabrielyan" <[EMAIL PROTECTED]> wrote: > Hi guys, > > I would appreciate a help with this question. > > The Windows application I am working on needs to read Firefox cookies. The > application is a desktop app, that has access to the user files. > > Up until the Firefox version 2.0 our application was parsing the cookies.txt > to read the cookies. We however realized that this might change one day. > Which did with Firefox 3 - cookies.sqlite is the new cookie file. > > I am wondering if there is a way to access Firefox cookies without having to > deal with cookie file directly. Is there any XPCOM/Gecko-runtime-based > solution to this? > > The idea is to change the application once and forever to be able to access > Firefox cookies in a Firefox-version-independent way. > > I will resort to the Sqlite database reader if there are no option, but if > anyone knows a universal cookie access mechanism, please let me know. > > Thanks in advance! > Karen Gabrielyan
What about nsICookieManager2 and nsICookieService? You can also register an observer for "cookie-changed" and "cookie- rejected" event fired by "@mozilla.org/observer-service;1" to watch modifications. Honza _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
