cookie prefs not being initialized bug 10444

This commit is contained in:
neeti%netscape.com 1999-07-27 01:44:58 +00:00
Родитель 088bd4235e
Коммит c4ea98fe54
3 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

@ -59,6 +59,13 @@ extern int NET_SaveCookies(char * filename);
*/ */
extern int NET_ReadCookies(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 /* wrapper of NET_SetCookieString for netlib use. We need outformat and url_struct to determine
* whether we're dealing with inline cookies * whether we're dealing with inline cookies
*/ */

Просмотреть файл

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