зеркало из https://github.com/mozilla/gecko-dev.git
cookie prefs not being initialized bug 10444
This commit is contained in:
Родитель
088bd4235e
Коммит
c4ea98fe54
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче