Closed Bug 1572062 Opened 6 years ago Closed 4 years ago

Use html root element in messenger.xhtml and update styling to support html roots

Categories

(Thunderbird :: General, task, P2)

Tracking

(thunderbird_esr78 wontfix, thunderbird85 wontfix)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird85 --- wontfix

People

(Reporter: mkmelin, Assigned: mkmelin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 3 obsolete files)

The messenger.xhtml bug mirroring bug 1492582.

This will make messenter.xhtml use a top level <html> tag with <head> and <body>.

Blocks: 1682949

This should be it. Everything seems to look like it did.
The one problem I've noticed is that in dark mode the quick filter bar is not dark.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #9194866 - Flags: review?(richard.marti)

Comment on attachment 9194866 [details] [diff] [review]
bug1572062_messenger_html_root.patch

(In reply to Magnus Melin [:mkmelin] from comment #1)

Created attachment 9194866 [details] [diff] [review]
bug1572062_messenger_html_root.patch

This should be it. Everything seems to look like it did.
The one problem I've noticed is that in dark mode the quick filter bar is not dark.

It seems that with this patch mailWindow1.css does no more apply on the QFB. Moving https://searchfox.org/comm-central/source/mail/themes/shared/mail/mailWindow1.css#97-124 to the shared messenger.css works for me. Maybe you could combine the rules with the ones here: https://searchfox.org/comm-central/source/mail/themes/shared/mail/messenger.css#191.

With drawInTitlebar the window buttons (Minimize/Maximize/Close) are always on the left side.

Attachment #9194866 - Flags: review?(richard.marti)
Comment on attachment 9194866 [details] [diff] [review] bug1572062_messenger_html_root.patch Review of attachment 9194866 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/base/content/messenger.xhtml @@ +495,5 @@ > #include ../../../calendar/lightning/content/calendar-context-menus-and-tooltips.inc.xhtml > > +<!-- Temporary wrapper until we move away from XUL flex to allow a negative > + margin-top to slide the toolbox off screen in fullscreen layout.--> > +<box> We have no fullscreen mode. So this isn't really needed. Removing it fixes also the caption button issue. But you need also to remove the `flex="1"` on messenger.xhtml but not messageWindow.xhtml.

Ah, thanks for the hint! mailWindow1.css had a default xul namespacing which messed things up. We should probably get rid of (almost?) all of those.
Without the <box> it doesn't work for me, the layout is quite borked.

Attachment #9194866 - Attachment is obsolete: true
Attachment #9194890 - Flags: review?(richard.marti)

The messageheader are also not dark in main window. Maybe the same issue on messageHeader.css.

Indeed, same issue there. Removing the default xul namespace from messageHeader.css fixes it.
If you had something without <box> that worked, what was it? Can you send that diff?

This works for me on Windows. Need to test on other platforms.

Missed the hiddenWindowMac.xhtml.

Yes, that does seem to work! I don't know why it didn't when I tried earlier.

Attachment #9194898 - Attachment is obsolete: true

Comment on attachment 9194890 [details] [diff] [review]
bug1572062_messenger_html_root.patch

I tested with my patch but I can't approve my own changes. Please test my patch and when it's OK use it to land. I tried my patch on all platforms and I saw no regressions. It should work as before.

Attachment #9194890 - Flags: review?(richard.marti) → review+

Excellent, thank you very much for the help!

Target Milestone: --- → 86 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/90c67dcde6a4
Use html root element in messenger.xhtml and update styling to support html roots. r=Paenglab

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Attachment #9194890 - Attachment is obsolete: true

A slight followup: <script> should not use minimized form even in XHTML, even if it works.

Attachment #9195292 - Flags: review?(geoff)

Comment on attachment 9195292 [details] [diff] [review]
bug1572062_close_script.patch

LGTM.

Attachment #9195292 - Flags: review?(geoff) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/231fed6a1613
<script> should not use minimized form in xhtml. r=darktrojan

Regressions: 1686317
Regressions: 1688424
Regressions: 1689934
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: