Open Bug 696491 Opened 13 years ago Updated 2 years ago

The margin between the edit contact star right to an email address and the email address gets smaller after hiding/showing again the singlemessage DOM object

Categories

(Thunderbird :: Message Reader UI, defect)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: joachim.herb, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

The margin between the edit contact star right to an email address and the email address is to small after first time viewing a thread

What did you do?
Click on a message in the folder pane so it is opened in the message pane below/to the right. The star on the right side "edit contact" of the email address is in the correct distance.
Click on a collapsed thread (of messages). Below the preview of the thread should appear.
Click on a single message (again).

What happened?
The star is now placed with a too small margin between it and the email address.

What should have happened?
The margin should not change.
[squib on IRC]: This looks like a core bug. The margin CSS specification is applied only after viewing a thread the first time.
The CSS code is here: http://mxr.mozilla.org/comm-central/source/mail/themes/qute/mail/messageHeader-aero.css#632
I can reproduce this using Windows and Linux. This bug seems to exist at least since Thunderbird 5 and up to 10.0a1.
These tree mozmill tests demonstrate the problem:
If an email thread is selected (and back then the non-threaded email) the star position relative to the email address changes so the width of the emailDisplayButton surrounding the email address and the star icon gets smaller.

The old margin between the email address and the star is reset by reopening the 3pane mail window. 

It is enough to toggle hidden attribute of the singlemessage DOM object to trigger this bug, so it is not (really) related to threaded/multimessage view.
Summary: The margin between the edit contact star right to an email address and the email address is to small after first time viewing a thread → The margin between the edit contact star right to an email address and the email address gets smaller after hiding/showing again the singlemessage DOM object
A new version of the mozmill tests. They demonstrate that the problem is caused by toggling the hidden (javascript) attribute of (any) DOM object containing the star. Changing the DOM attribute collapsed does not cause the problem. (The first assert_equals) in the test. Only the second one fails:

$ make SOLO_TEST=message-header/test-email-star-margin.js mozmill-one
unset PYTHONHOME && cd ./mozilla/_tests/mozmill && MACOSX_DEPLOYMENT_TARGET= \
        /c/Users/joachim/workspace/comm-2/obj-tb/./mozilla/_tests/mozmill/../mozmill-virtualenv/Scripts/python.exe runtest.py \
        --test=/c/Users/joachim/workspace/comm-2/obj-tb/../mail/test/mozmill/message-header/test-email-star-margin.js \
        --binary=../../.././mozilla/dist/bin/thunderbird.exe \
        --symbols-path=/c/Users/joachim/workspace/comm-2/obj-tb/./mozilla/dist/crashreporter-symbols \

Using profile dir: c:\Users\joachim\workspace\comm-2\obj-tb\mozilla\_tests\mozmill\mozmillprofile
TEST-START | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | setupModule
TEST-PASS | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | setupModule
TEST-START | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | test_emailStar_margin_toggle_hidden_attribute
Test Failure: a != b: '196' != '193'.
TEST-UNEXPECTED-FAIL | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | test_emailStar_margin_toggle_hidden_attribute
TEST-START | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | teardownModule
TEST-PASS | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | teardownModule
INFO Passed: 2
INFO Failed: 1
INFO Skipped: 0
SUMMARY-UNEXPECTED-FAIL | c:\Users\joachim\workspace\comm-2\mail\test\mozmill\message-header\test-email-star-margin.js | test_emailStar_margin_toggle_hidden_attribute
  EXCEPTION: a != b: '196' != '193'.
    at: test-folder-display-helpers.js line 2842
       assert_true(false,"a != b: '196' != '193'.") test-folder-display-helpers.js 2842
       assert_equals(196,193) test-folder-display-helpers.js 2829
       test_emailStar_margin_toggle_hidden_attribute() test-email-star-margin.js 105
            frame.js 554
            frame.js 623
            frame.js 666
            frame.js 503
            frame.js 678
            server.js 182
            server.js 186
make: *** [mozmill-one] Error 1
Attachment #568878 - Attachment is obsolete: true
Flags: wanted-thunderbird+
Its a bit hard to tell, but most of the failures seem to be random, this one is more or less consistent (which is the one you're looking at):

TEST-UNEXPECTED-FAIL | /builds/slave/test/build/mozmill/message-header/test-email-star-margin.js | test_emailStar_margin_toggle_hidden_attribute
TEST-UNEXPECTED-FAIL | (runtestlist.py) | Exited with code 1 during directory run

For the rest of them, you can generally look at:

http://build.mozillamessaging.com/tinderboxpushlog/?tree=ThunderbirdTry

click the build that's failing and you'll get a summary, plus possible bugs for the random orange if there are any.
Henrik ideas ?
I'm not sure what I should answer. Mozmill tests for Thunderbird are quite different given the own shared modules. I would need a better explanation of the problem to give an answer if this is Mozmill core related.
The mozmill test just demonstrates this problem. It appears in Thunderbird all the time (at least using Windows) if you switch between multi message view and single view.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: