Closed Bug 491868 Opened 15 years ago Closed 15 years ago

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

Categories

(Calendar :: Lightning Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

Details

(Keywords: regression)

Attachments

(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 Wilbergsteffen.wilberg@...de

Wheras in Thunderbird 2, it looks like this:
  *Card for Wilberg, Steffen*
  Display Name: Steffen Wilberg
  steffen.wilberg@...de

STR:
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?
> http://mxr.mozilla.org/comm-central/source/mail/base/jar.mn#2
> http://mxr.mozilla.org/comm-central/source/suite/mailnews/jar.mn#2
> http://mxr.mozilla.org/comm-central/source/calendar/lightning/jar.mn#3

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:
http://mxr.mozilla.org/comm-central/search?string=messagebody&find=/calendar/
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
Status: NEW → ASSIGNED
Attachment #376466 - Flags: review?(ssitter)
Comment on attachment 376466 [details] [diff] [review]
patch

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]
patch

Looks fine, the messages are still styled.

We really need to file a bug to make the message body look less like...sh... I mean...old :-)
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/6a219214c4e3>

-> FIXED
Status: ASSIGNED → RESOLVED
Closed: 15 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.