Closed Bug 762594 Opened 12 years ago Closed 12 years ago

Prompts to save unmodified message forward draft

Categories

(Thunderbird :: Message Compose Window, defect)

13 Branch
defect
Not set
normal

Tracking

(thunderbird14-, thunderbird15-, thunderbird16+, thunderbird17+, thunderbird19 fixed, thunderbird-esr1718+ fixed)

RESOLVED FIXED
Thunderbird 20.0
Tracking Status
thunderbird14 - ---
thunderbird15 - ---
thunderbird16 + ---
thunderbird17 + ---
thunderbird19 --- fixed
thunderbird-esr17 18+ fixed

People

(Reporter: jik, Assigned: mkmelin)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

If I click the Forward button on a message, and then immediately try to close the window, TB asks me if I want to save it.

I'm fairly certain this is new behavior. If I haven't modified the draft after clicking the Forward button, then it shouldn't be prompting me, and I don't think it has in the past.

I'm marking this as a regression. Feel free to remove the keyword if I'm wrong about the previous behavior, but I don't think I am.
TB Daily 13.0a1 build from March 3 doesn't ask on close.
TB 13.0 beta 1 (April 25) *does* ask to save as draft.

Also applies to Linux x86_64, composing in HTML mode.
OS: Windows 7 → All
Hardware: x86_64 → All
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hmm, I'm pretty sure there's some sort of hack or work around to "reset" the editor when we start up the compose window, I'm hoping someone might be able to remember where that is.
Well, the typical sequence goes like this (error checking removed for sanity)

m_editor->EnableUndo(false);
/* do stuff here */
m_editor->EnableUndo(true);
SetBodyModified(false);

SetBodyModified(false) is a wrapper around m_editor->ResetModificationCount();
I've got a fix for this, just need to improve the tests for it.
Assignee: nobody → mkmelin+mozilla
Attached patch proposed fix (obsolete) — Splinter Review
Attachment #684934 - Flags: review?(mconley)
Status: NEW → ASSIGNED
Attached patch proposed fix, v2Splinter Review
Sorry, forgot a qrefresh... this is the final version
Attachment #684934 - Attachment is obsolete: true
Attachment #684934 - Flags: review?(mconley)
Attachment #684935 - Flags: review?(mconley)
Blocks: 736055
Comment on attachment 684935 [details] [diff] [review]
proposed fix, v2

Review of attachment 684935 [details] [diff] [review]:
-----------------------------------------------------------------

I'm good with this. Thanks Magnus!
Attachment #684935 - Flags: review?(mconley) → review+
http://hg.mozilla.org/comm-central/rev/65f054d50891 -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 20.0
Comment on attachment 684935 [details] [diff] [review]
proposed fix, v2

Review of attachment 684935 [details] [diff] [review]:
-----------------------------------------------------------------

Do we want this for esr?
Attachment #684935 - Flags: approval-comm-esr17?
Comment on attachment 684935 [details] [diff] [review]
proposed fix, v2

[Triage Comment]
Yes, I think we should take it for ESR. We'll also land on aurora ready for the next beta.
Attachment #684935 - Flags: approval-comm-esr17?
Attachment #684935 - Flags: approval-comm-esr17+
Attachment #684935 - Flags: approval-comm-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: