cookie prefs not being initialized bug 10444

git-svn-id: svn://10.0.0.236/trunk@41208 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neeti%netscape.com
1999-07-27 01:44:58 +00:00
parent d88787a426
commit c0b6ee0f37
3 changed files with 10 additions and 1 deletions

View File

@@ -785,7 +785,7 @@ NET_CookiePermission(char* URLName) {
/* called from mkgeturl.c, NET_InitNetLib(). This sets the module local cookie pref variables
and registers the callbacks */
PUBLIC void
NET_RegisterCookiePrefCallbacks(void)
COOKIE_RegisterCookiePrefCallbacks(void)
{
PRInt32 n;
PRBool x;

View File

@@ -59,6 +59,13 @@ extern int NET_SaveCookies(char * filename);
*/
extern int NET_ReadCookies(char * filename);
/* This sets the module local cookie pref variables
* and registers the callbacks
*/
extern void COOKIE_RegisterCookiePrefCallbacks(void);
/* wrapper of NET_SetCookieString for netlib use. We need outformat and url_struct to determine
* whether we're dealing with inline cookies
*/

View File

@@ -160,6 +160,8 @@ nsCookieService::Init()
rv = pNetModuleMgr->RegisterModule(NS_NETWORK_MODULE_MANAGER_HTTP_RESPONSE_PROGID, eventQ, mCookieHTTPNotify, &kCookieHTTPNotifyCID);
if (NS_FAILED(rv))
return rv;
COOKIE_RegisterCookiePrefCallbacks();
return rv;
}