Closed Bug 330958 Opened 19 years ago Closed 16 years ago

text message composer window resets direction to LTR

Categories

(MailNews Core :: Composition, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: eyalroz1, Unassigned)

Details

(Keywords: helpwanted, qawanted, rtl)

using SM nightly 2006-03-16 with BiDi Mail UI 0.7.2 . Although I set my message's direction to RTL, in some circumstances which I am not able to characterize or reproduce exactly, but which seem to involve moving the cursor to the main toolbar, the message direction is switched back to LTR. I was able to reproduce this twice, then couldn't reproduce it again. Javascript console showed no errors, and I'm 99.9% sure it's not a problem with our extension.
Have had this happen to me again, with the trigger being moving the mouse cursor to the bottom-of-window toolbar (the one with the navigation wheel, inbox, composer, addressbook and chatzilla buttons). I was able to reproduce it repeatedly in the same message, but when I copied all of the message text to a new message composition window, I wasn't able to reproduce the bug.
Keywords: regression
Depends on: 330089
When did this regress?
Actually, I'm not 100% sure this is a regression, since I only switched to using the code I'm currently using due to bug 330089, so this may always have been the case. But I suspect around 2006-03-07. Will try to verify this.
Keywords: regression
Despite 330089 being fixed, the problem persists (when indeed we use

	var contentDocument = 
                document.getElementById("content-frame").contentDocument;
        direction =
          contentDocument.defaultView
                .getComputedStyle(contentDocument.body,"").
                getPropertyValue("direction");

to get the directon.
No longer depends on: 330089
This bug really needs something resembling a clear way to reproduce, or better yet a testcase...
Practically any message can trigger this, it's just that I can't give you deterministic reproduction instructions. It's as though it happens at random. Still, it does happen with relatively high probability (1/100 ? 1/50? something like that) after you've pressed the send button and while the message is being sent.
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
QA Contact: composition
I haven't seen this manifest since the toolkitization.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.