Closed Bug 465978 Opened 16 years ago Closed 16 years ago

Port security exceptions front end piece from Thunderbird to SeaMonkey

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0a2

People

(Reporter: kairo, Assigned: misak.bugzilla)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 3 obsolete files)

Bug 429843 did introduce a rough piece mailnews security exception UI to the Thunderbird frontend, we should adopt this on SeaMonkey as well, and follow bug 465795 later for a better implementation. For now, let's port the simple piece, as mentioned in bug 429843 comment #79 and bug 429843 comment #88.
Attached patch patch (obsolete) — Splinter Review
Seems easy one.
Attachment #350479 - Flags: superreview?(neil)
Attachment #350479 - Flags: review?(neil)
Attached patch correct patch (obsolete) — Splinter Review
oops, i left dump() in code.
Attachment #350479 - Attachment is obsolete: true
Attachment #350480 - Flags: superreview?(neil)
Attachment #350480 - Flags: review?(neil)
Attachment #350479 - Flags: superreview?(neil)
Attachment #350479 - Flags: review?(neil)
This patch works fine for accessing an account with an invalid cert from the mail window (tested with IMAPs here) but when doing the load from the browser window to update the mailbiff icon and mailnews not open yet, it fails and still displays the "stupid" cert error dialog with no possibility to add exceptions (of course, as the callback is only installed on the actual mail window).
Comment on attachment 350480 [details] [diff] [review] correct patch InformUserOfCertError and BadCertHandler (or should it be called nsMsgBadCertHandler?) need to live in mailTasksOverlay.js so that as some point we can hook it up to the biff code Kairo was talking about. >+ setTimeout(InformUserOfCertError, 0, socketInfo, targetSite); Nit: unused socketInfo >+ var params = { exceptionAdded : false }; >+ params.prefetchCert = true; >+ params.location = targetSite; Nit: should write this as one big JS object instead of setting the properties separately.
Comment on attachment 350480 [details] [diff] [review] correct patch >+ if (!iid.equals(Components.interfaces.nsIBadCertListener2) && >+ !iid.equals(Components.interfaces.nsIInterfaceRequestor) && >+ !iid.equals(Components.interfaces.nsISupports)) Nit: iid needs to line up on each line. r+sr=me with all those nits fixed. I tried to see if I could resolve the bad cert issue on the browser window but unfortunately whenever you have a msgWindow you get alerts for e.g. timeouts.
Attachment #350480 - Flags: superreview?(neil)
Attachment #350480 - Flags: superreview+
Attachment #350480 - Flags: review?(neil)
Attachment #350480 - Flags: review+
Attached patch nits fixed for checkin (obsolete) — Splinter Review
Requesting r,s again, i'm not sure that i understood all right.
Attachment #350480 - Attachment is obsolete: true
Attachment #350604 - Flags: superreview?(neil)
Attachment #350604 - Flags: review?(neil)
Attachment #350604 - Flags: approval-seamonkey2.0a2?
Comment on attachment 350604 [details] [diff] [review] nits fixed for checkin >+ setTimeout(InformUserOfCertError, 0, socketInfo, targetSite); ... >+function InformUserOfCertError(socketInfo, targetSite) Nit: You never actually use socketInfo, so I don't see the point of passing it.
Attachment #350604 - Flags: superreview?(neil)
Attachment #350604 - Flags: superreview+
Attachment #350604 - Flags: review?(neil)
Attachment #350604 - Flags: review+
Last nit fixed, carrying forward r+, sr+ from Neil.
Attachment #350604 - Attachment is obsolete: true
Attachment #350607 - Flags: approval-seamonkey2.0a2?
Attachment #350604 - Flags: approval-seamonkey2.0a2?
Attachment #350607 - Attachment is patch: true
Attachment #350607 - Attachment mime type: application/octet-stream → text/plain
Attachment #350607 - Flags: approval-seamonkey2.0a2? → approval-seamonkey2.0a2+
Keywords: checkin-needed
Attachment #350607 - Attachment description: for checkin → for checkin [Checkin: Comment 9]
Assignee: nobody → misak
Keywords: checkin-needed
Target Milestone: --- → seamonkey2.0a2
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Blocks: 467299
Blocks: 1689923
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: