Closed Bug 491868 Opened 14 years ago Closed 14 years ago

print card/contact is completely unstyled and hard to read with Lightning enabled


(Calendar :: Lightning Only, defect)

Not set


(Not tracked)



(Reporter: steffen.wilberg, Assigned: steffen.wilberg)



(Keywords: regression)


(1 file)

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b5pre) Gecko/20090507 Lightning/1.0pre Shredder/3.0b3pre

Cards/contacts are being printed completely unstyled and hard to read, like if the css is not applied, like this:

Wilberg, Steffen Display Name: Steffen

Wheras in Thunderbird 2, it looks like this:
  *Card for Wilberg, Steffen*
  Display Name: Steffen Wilberg

1. Open the Address Book
2. Select a card.
3. Menu File -> Print Preview Contact
I thought we fixed something like this recently...
wfm, with the same build on XP.
Ah, this only occurs if I have Lightning (latest 1.0pre 07-May-2009 04:36 PST nightly) enabled.
Summary: print card/contact is completely unstyled and hard to read → print card/contact is completely unstyled and hard to read with Lightning enabled
(In reply to comment #3)
> Ah, this only occurs if I have Lightning (latest 1.0pre 07-May-2009 04:36 PST
> nightly) enabled.

So I'm thinking this is likely a Lightning bug in that case - there's possibly something incorrectly interacting with TB somehow.
Component: Address Book → Lightning Only
Product: Thunderbird → Calendar
QA Contact: address-book → lightning
When I set chrome://messagebody/content/addressbook/print.css as Thunderbird startpage, it displays fine with Lightning disabled, but results in the following error with Lightning enabled (profile names stripped out):

The file jar:file:///C:/Users/.../AppData/Roaming/Thunderbird/Profiles/....default/extensions/{...}/chrome/lightning.jar!/content/messagebody/addressbook/print.css cannot be found. Please check the location and try again.

This points to "lightning.jar" in the profiles/extensions directory, but print.css file is in "messenger.jar" in the app/chrome directory.
(In reply to comment #6)
> Are these chrome registrations of mail, suite and lightning for messagebody
> conflicting with each other?

Well Mail & Suite are fine. The Lightning one is a little strange. It'd be interesting to know if Lightning could do the override without the content registration.
Blocks: 435390
Maybe you can test if replacing "messagebody" with something unique like "lightning-messagebody" in the Lightning files fixes the issue:
Attached patch patchSplinter Review
Removing the content registration line is enough to fix this bug, and doesn't break the styling of invitation emails. Those only break when removing the following override line.

You can easily test this without rebuilding by simply removing this line from you extensions/lightning/chrome.manifest file:
content messagebody jar:chrome/lightning.jar!/content/messagebody/ contentaccessible=yes
Assignee: nobody → steffen.wilberg
Attachment #376466 - Flags: review?(ssitter)
Comment on attachment 376466 [details] [diff] [review]

Have you tested that invitations on imap server still work? (the bug 435390 you mentioned)

I don't have the setup to test this topics, moving review to Philipp.
Attachment #376466 - Flags: review?(ssitter) → review?(philipp)
Attachment #376466 - Flags: review?(philipp) → review+
Comment on attachment 376466 [details] [diff] [review]

Looks fine, the messages are still styled.

We really need to file a bug to make the message body look less I mean...old :-)
Pushed to comm-central <>

Closed: 14 years ago
OS: Windows Vista → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → 1.0
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.