Undo-ing to a blank subject does not give (no subject) in title, backspace does



Message Compose Window
12 years ago
5 years ago


(Reporter: djpohly, Unassigned)


Windows XP
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)




12 years ago
About as trivial as they come, this one.  If you use the Undo function to clear the subject of a new message, the title of the window does not display (no subject).

Steps to reproduce:
1. Compose a new message.
2. Enter text in the Subject field.
3. Undo the entry of the text (Ctrl-Z, Alt-Bksp, or through context menu).

Expected results:
Title of window becomes "Compose: (no subject)"

Actual results:
Title of window becomes "Compose: "

Comment 1

12 years ago
Related to Core bug 221829 -> Core bug 147625?

Comment 2

12 years ago
Dup of bug 320006?

Comment 3

12 years ago
Upon DOMi-ing the window, it appears that the title of the window does indeed contain an extra LF at the end, but the textbox claims to have textLength 0.
QA Contact: message-compose

Comment 4

10 years ago

there is no attention to bug 320006 (nor Bug 147625 which is cited there). so, ...

Is compose behavior described intentional and if not, is it worthy of changing?  

When message is saved as draft after step 3, closed, and reopened from drafts then window is "Compose: (no subject)" - so it's clear that the subject is saved correctly after undo and that window initialization sets "(no subject)". But is "(no subject)" a default that must be restored in the process of editing?

Comment 5

10 years ago
It's not intentional, I don't think, but I wouldn't say it's worth changing.

Comment 6

10 years ago
I only reported it because, for example, typing A ^Z gives a different "result" than typing A <Backspace>.  Like I said, about as trivial as they come. :)  I just figured it'd be either (a) a small fix somewhere, or (b) symptomatic of some underlying problem that needed fixed.

Comment 7

10 years ago
origin probably goes back to bug 60917 comment 15. 
in which case probably related to or dupe of these other bugs
Assignee: mscott → nobody
Depends on: 147625, 320006
Ever confirmed: true
Summary: Undo-ing to a blank subject does not give (no subject) in title → Undo-ing to a blank subject does not give (no subject) in title, backspace does

Comment 8

10 years ago
Still happens in Thunderbird, exactly as described.
Depends on: 318065

Comment 9

7 years ago
still happens on trunk / still blocked on bug 147625, bug 318065
Severity: trivial → minor

Comment 10

7 years ago
This isn't as bad as some of the Firefox bugs which are nearly 10 years old, but it's still marked as NEW and that's just ridiculous.

I propose a quick-and-easy solution: don't change the window title at all until the subject field loses focus. This is exactly what Outlook does, and personally I prefer it because seeing the window title change while I'm typing is very distracting.

Comment 11

7 years ago
I think that would be entirely reasonable even if there weren't a bug!

I don't know if the bug is an indicator of something slightly awry elsewhere though... undo event handling, or textbox text management, or something.
Did this get fixed by the landing of bug 318065?
You need to log in before you can comment on or make changes to this bug.