Closed Bug 148195 Opened 22 years ago Closed 16 years ago

remove session-logout code from mailnews

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3

People

(Reporter: morse, Assigned: sgautherie)

References

Details

Attachments

(1 file, 2 obsolete files)

As a result of the patch in bug 98673, the session-logout signal is no longer 
being issued.  The code for handling that signal should be removed.

This occurs in the following place in mailnews

/mailnews/base/src/nsMsgAccountManager.cpp, line 192 -- 
observerService->AddObserver(this, "session-logout", PR_TRUE);
/mailnews/base/src/nsMsgAccountManager.cpp, line 261 -- if 
(!nsCRT::strcmp(aTopic, "session-logout"))
mass re-assign.
Assignee: racham → sspitzer
Product: Browser → Seamonkey
Assignee: sspitzer → mail
taking
Assignee: mail → bienvenu
Depends on: 98673
Assignee: bienvenu → nobody
Severity: normal → trivial
Component: MailNews: Account Manager → Account Manager
No longer depends on: 98673
OS: Windows NT → All
Product: Mozilla Application Suite → Thunderbird
QA Contact: stephend → account-manager
Hardware: PC → All
Target Milestone: --- → Thunderbird 3
Depends on: 98673
Attached patch (Av1) <nsMsgAccountManager.cpp> (obsolete) — Splinter Review
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #325989 - Flags: superreview?(bienvenu)
Attachment #325989 - Flags: review?(bienvenu)
Attachment #325989 - Attachment is obsolete: true
Attachment #325990 - Flags: superreview?(bienvenu)
Attachment #325990 - Flags: review?(bienvenu)
Attachment #325989 - Flags: superreview?(bienvenu)
Attachment #325989 - Flags: review?(bienvenu)
Comment on attachment 325990 [details] [diff] [review]
(Av1a) <nsMsgAccountManager.cpp>
[Checkin: Comment 7]

looks like there's still some necko and nss code that pays attention to this notification...but no one sending it.
Attachment #325990 - Flags: superreview?(bienvenu)
Attachment #325990 - Flags: superreview+
Attachment #325990 - Flags: review?(bienvenu)
Attachment #325990 - Flags: review+
(In reply to comment #5)

Yes: bug 148192 and bug 148194.
Keywords: checkin-needed
Checking in mailnews/base/src/nsMsgAccountManager.cpp;
/cvsroot/mozilla/mailnews/base/src/nsMsgAccountManager.cpp,v  <--  nsMsgAccountManager.cpp
new revision: 1.338; previous revision: 1.337
done
Flags: in-testsuite-
Keywords: checkin-needed
Attachment #325990 - Attachment description: (Av1a) <nsMsgAccountManager.cpp> → (Av1a) <nsMsgAccountManager.cpp> [Checkin: Comment 7]
1.8(.1) branch port of Av1a patch.
Attachment #326581 - Flags: superreview?(bienvenu)
Attachment #326581 - Flags: review?(bienvenu)
> 1.8(.1) branch port of Av1a patch.

If you land that on the branch, what happens to an extension which thinks that by firing session-logout, it will get the user logged out of any active mail sessions?
why would we land this on the branch? Isn't it just code cleanup?
(In reply to comment #9)

Such an extension would be "broken", obviously.

(In reply to comment #10)
> why would we land this on the branch? Isn't it just code cleanup?

I submitted this patch because bug 98673 landed years ago;
but, if you think we should leave this code on the branch, that would be fine with me.

Yes: simple "dead" code removal.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 326581 [details] [diff] [review]
(Bv1-18B) <nsMsgAccountManager.*>

yeah, I'm happy leaving the branch this way.
Attachment #326581 - Attachment is obsolete: true
Attachment #326581 - Flags: superreview?(bienvenu)
Attachment #326581 - Flags: review?(bienvenu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: