Bug 148192 – Remove session-logout code from networking
p=sgautherie r/sr=cbiesinger
This commit is contained in:
Родитель
fa4e4f8635
Коммит
0054b33909
|
@ -281,7 +281,6 @@ nsHttpHandler::Init()
|
|||
if (mObserverService) {
|
||||
mObserverService->AddObserver(this, "profile-change-net-teardown", PR_TRUE);
|
||||
mObserverService->AddObserver(this, "profile-change-net-restore", PR_TRUE);
|
||||
mObserverService->AddObserver(this, "session-logout", PR_TRUE);
|
||||
mObserverService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_TRUE);
|
||||
}
|
||||
|
||||
|
@ -1710,14 +1709,6 @@ nsHttpHandler::Observe(nsISupports *subject,
|
|||
// depend on this value.
|
||||
mSessionStartTime = NowInSeconds();
|
||||
}
|
||||
else if (strcmp(topic, "session-logout") == 0) {
|
||||
// clear cache of all authentication credentials.
|
||||
mAuthCache.ClearAll();
|
||||
|
||||
// need to reset the session start time since cache validation may
|
||||
// depend on this value.
|
||||
mSessionStartTime = NowInSeconds();
|
||||
}
|
||||
else if (strcmp(topic, "profile-change-net-restore") == 0) {
|
||||
// initialize connection manager
|
||||
InitConnectionMgr();
|
||||
|
|
Загрузка…
Ссылка в новой задаче