Closed Bug 1902991 Opened 12 days ago Closed 10 days ago

S/MIME status (encryption/signature) not shown when opening message from file

Categories

(MailNews Core :: Security: S/MIME, defect)

defect

Tracking

(thunderbird_esr115 affected, thunderbird_esr128 affected, thunderbird128 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
thunderbird_esr115 --- affected
thunderbird_esr128 --- affected
thunderbird128 --- fixed

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(2 files)

Save an S/MIME message to a file.
Use Thunderbird, File, Open, Saved Message, and select it.

The status header section doesn't show any S/MIME status indicators.

The reason is the check in msgHdrViewSMIMEOverlay.js, in both signedStatus() and encryptionStatus().

if (aMsgNeckoURL != this.getSelectedMessageURI()) {
  // Status isn't for selected message.
  return;
}

There is no selected message when we're opening from file.

I suggest we reuse the check from the OpenPGP code, which covers this scenario.

I have a working patch already, but I want to adjust it to avoid code duplication.

See Also: → 1902603

The fix changes the result of existing test testOuterSmimeSigInnerPgpEncryptedInsideMixed.

Because in that message the outer signature isn't ignored, it's expected that an S/MIME signature status indicator is shown.

The test currently checks that the signature status icon is hidden. The fact that it was hidden was a result of this bug.
I'll fix that test.

Assignee: nobody → kaie
Status: NEW → ASSIGNED
Whiteboard: [needs verification of patch on esr115]

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/8942c8f6ef35
S/MIME status must be shown when opening a message from file. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED

Patch required backport/adjustments.

Whiteboard: [needs verification of patch on esr115]

another revision submitted, and try build passed:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=7fa03540940955b2af4b7fbba48bb61c165281f3

(I had missed the test fix backport)

Comment on attachment 9407844 [details]
Bug 1902991 - S/MIME status must be shown when opening a message from file. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): no
User impact if declined: messages opened from file not showing s/mime status
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky): rather low, small fix plus minimal refactoring

Attachment #9407844 - Flags: approval-comm-beta?
Target Milestone: --- → 129 Branch

Comment on attachment 9407844 [details]
Bug 1902991 - S/MIME status must be shown when opening a message from file. r=mkmelin

[Triage Comment]
Approved for beta

Attachment #9407844 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: