Closed Bug 1661203 Opened 4 years ago Closed 4 years ago

Dark Theme inconsistency with OpenPGP and S/MIME message security window

Categories

(Thunderbird :: Theme, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird81 fixed)

VERIFIED FIXED
82 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird81 --- fixed

People

(Reporter: ak.bugzilla, Assigned: Paenglab)

Details

Attachments

(2 files)

Attached image message security.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36 Edg/84.0.522.63

Steps to reproduce:

Receive e-mails with either OpenPGP or S/MIME encryption or signature. Click the lock or letter icon to open the message security window.

Actual results:

In dark mode, the S/MIME message security window is dark, whereas the corresponding OpenPGP window is light.

Expected results:

Show both windows with the same style in dark mode.

Make it themeable too.

Assignee: nobody → richard.marti
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9172092 - Flags: review?(alessandro)
Comment on attachment 9172092 [details] [diff] [review] 1661203-openPGP-status-themeable.patch Review of attachment 9172092 [details] [diff] [review]: ----------------------------------------------------------------- Awesome, thanks!
Attachment #9172092 - Flags: review?(alessandro) → review+
Target Milestone: --- → 82 Branch

Comment on attachment 9172092 [details] [diff] [review]
1661203-openPGP-status-themeable.patch

[Approval Request Comment]
User impact if declined: inconsidtent dialog colours with dark themes
Testing completed (on c-c, etc.): on the way to c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9172092 - Flags: approval-comm-esr78?
Attachment #9172092 - Flags: approval-comm-beta?

Comment on attachment 9172092 [details] [diff] [review]
1661203-openPGP-status-themeable.patch

[Triage Comment]
approved for beta

Kai or Walt can you test this when the beta becomes available?

Flags: needinfo?(wls220spring)
Flags: needinfo?(kaie)
Attachment #9172092 - Flags: approval-comm-beta? → approval-comm-beta+

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/42592551aa26
Make the OpenPGP message security status dialog themeable. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9172092 [details] [diff] [review]
1661203-openPGP-status-themeable.patch

[Triage Comment]
Approved for esr78

Attachment #9172092 - Flags: approval-comm-esr78? → approval-comm-esr78+

Is it correct to add both code lines in the patch? The dialogShadowDom.js seems to do exactly the injection of the themeableDialog.css. So why do we need both?

+<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>
+<script src="chrome://messenger/content/dialogShadowDom.js"/>

The dialog buttons, the "OK" button for example, are in shadow DOM where our style sheets have no access, so we need to inject it there through dialogShadowDom.js.

Maybe i haven't seen the complete / latest version of the JS file. If I understand it right, the JS in the file I've seen in DXR, had only the function to inject the CSS.

So this JS provides the ability to style dialog / window elements on the outside of the content:

https://hg.mozilla.org/comm-central/file/tip/mail/base/content/dialogShadowDom.js

Okay ;-)

Removing needinfo, I haven't yet played with themes, so I currently don't know how to test this. But it looks like you already solved this.

Flags: needinfo?(kaie)

The OpenPGP dialog looks good in the tests I did on Windows and Linux of the 78.2.1 and 81.0b2 release candidates.

Status: RESOLVED → VERIFIED
Flags: needinfo?(wls220spring)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: