Hi,
I am writing a browser (using TestGtkEmbed as a base).
I need a way to set cookies from within the browser.
There seem to be a cookie service (NS_COOKIESERVICE_CID) that provides a
way to Set and get cookies. Unfortunately, I can't get it to work. I
looked under mozilla/extensions/cookie/tests, there is a test program
called TestCookie.cpp. It uses the (NS_COOKIESERVICE_CID) the way I
would like to use it, but the test program causes a segmentation fault
on line 44 (nsresult rv = cookieService->SetCookieString(uri, nsnull,
(char *)aCookieString);).
Does anyone have an idea way this test program is not working?
Are there any other good examples of using this cookie service?
Any help would be appreciated.
Thanks,
Andreas
Note: I am using Redhat 7.1 and Mozilla 0.9.3