Closed Bug 1229013 Opened 9 years ago Closed 8 years ago

Cannot verify sender cert in smime signed received email since nsIPKIParamBlock went away

Categories

(Thunderbird :: Security, defect)

44 Branch
defect
Not set
normal

Tracking

(thunderbird43 unaffected, thunderbird44 affected, thunderbird45+ fixed, thunderbird46 fixed)

RESOLVED FIXED
Thunderbird 46.0
Tracking Status
thunderbird43 --- unaffected
thunderbird44 --- affected
thunderbird45 + fixed
thunderbird46 --- fixed

People

(Reporter: mike.cloaked, Assigned: mkmelin)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Steps to reproduce:

Receive an smime signed email and see the small envelope icon with the red spot at top right of the preview pane. Try to click the envelope to check smime certificate information.


Actual results:

Clicking the smime icon envelope does nothing.


Expected results:

Clicking the smime icon envelope should open a pop up with certificate information.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Build ID is 

Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0a2 ID:20151106004034 CSet: 667801dbe2a1de6cf9d8e3e70f2d4e9da2633d3d

I was not checking this in recent nightly versions so I don't know when this regression happened.
I confirm same issue in nightly builds. Problem is for both the signed (seal envelope icon) and encrypted mail (the padlock icon) - neither open with additional information anymore for s/mime secured email.

User Agent:   Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0a1
Build Id  :   20151129030241

Gene
Timestamp: 03.12.2015 23.39.57
Error: TypeError: Components.classes['@mozilla.org/security/pkiparamblock;1'] is undefined
Source File: chrome://messenger-smime/content/msgReadSMIMEOverlay.js
Line: 54
Status: UNCONFIRMED → NEW
Ever confirmed: true
We should probably determine what replaced this usage in m-c and do the same changes in c-c. There were no more uses of this in m-c so they removed it.
Basically, you can use nsIDialogParamBlock everywhere nsIPKIParamBlock is being used. Hopefully https://hg.mozilla.org/mozilla-central/rev/23f0dcfdcce1#l5.31 and https://hg.mozilla.org/mozilla-central/rev/23f0dcfdcce1#l11.23 and so on will be helpful.
Component: Untriaged → Security
Assignee: nobody → mkmelin+mozilla
Summary: Cannot verify sender cert in smime signed received email → Cannot verify sender cert in smime signed received email since nsIPKIParamBlock went away
The fix
Attachment #8702082 - Flags: review?(Pidgeot18)
Status: NEW → ASSIGNED
Comment on attachment 8702082 [details] [diff] [review]
bug1229013_smime_nsIDialogParamBlock_conversion.patch

Review of attachment 8702082 [details] [diff] [review]:
-----------------------------------------------------------------

Trying to move forward blockers, I reviewed this code and tested that it works. If you would prefer a review my jcranmer, reset the review field.
Attachment #8702082 - Flags: review?(Pidgeot18) → review+
Thx for the review!

https://hg.mozilla.org/comm-central/rev/c25d8e4d9e67 -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
OS: Linux → All
Hardware: x86_64 → All
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 46.0
Comment on attachment 8702082 [details] [diff] [review]
bug1229013_smime_nsIDialogParamBlock_conversion.patch

[Approval Request Comment]
Regression caused by (bug #): 1217602 
User impact if declined: inability to verify sender s/mime cert 
Testing completed (on c-c, etc.): 
Risk to taking this patch (and alternatives if risky): not risky, it's completely broken as is
Attachment #8702082 - Flags: approval-comm-beta?
Attachment #8702082 - Flags: approval-comm-aurora?
Excellent - thank you.
Comment on attachment 8702082 [details] [diff] [review]
bug1229013_smime_nsIDialogParamBlock_conversion.patch

(In reply to Magnus Melin from comment #9)
> Risk to taking this patch (and alternatives if risky): not risky, it's
> completely broken as is
Very funny and very convincing ;-)
Attachment #8702082 - Flags: approval-comm-beta?
Attachment #8702082 - Flags: approval-comm-beta+
Attachment #8702082 - Flags: approval-comm-aurora?
Attachment #8702082 - Flags: approval-comm-aurora+
Magnus, do you want to land this on TB 44 beta given that TB 45 beta should be coming out soon?

My preference would be to forget about TB 44 beta (since all the good stuff is in TB 45). If you agree, please clear the flag and set status-thunderbird44 to wontfix.
Flags: needinfo?(mkmelin+mozilla)
Well, I think SeaMonkey is releasing from that, so they would want it.
Flags: needinfo?(mkmelin+mozilla)
Comment on attachment 8702082 [details] [diff] [review]
bug1229013_smime_nsIDialogParamBlock_conversion.patch

Sorry, I'm clearing the beta approval since the beta (TB 44) is now gone.
TB 45 in now in beta and it was landed on there when it was still in Aurora.
Attachment #8702082 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: