зеркало из https://github.com/mozilla/pjs.git
r=darin, sr=bzbarsky, a=asa Make session-logout work again for http so turbo works on OS/2
This commit is contained in:
Родитель
69801b0254
Коммит
9447538c99
|
@ -1625,7 +1625,6 @@ nsHttpHandler::Observe(nsISupports *subject,
|
|||
// XXX should probably shutdown and init the conn mgr.
|
||||
}
|
||||
else if (strcmp(topic, "profile-change-net-teardown") == 0 ||
|
||||
strcmp(topic, "session-logout") == 0 ||
|
||||
strcmp(topic, NS_XPCOM_SHUTDOWN_OBSERVER_ID) == 0) {
|
||||
|
||||
// kill off the "prune dead connections" timer
|
||||
|
@ -1642,6 +1641,14 @@ 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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче