Closed Bug 1249884 Opened 8 years ago Closed 8 years ago

Re-opening a saved paintext draft inserts a <div moz-forward-container>, regression from bug 736584

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
normal

Tracking

(thunderbird45 fixed, thunderbird46 fixed, thunderbird47 fixed)

RESOLVED FIXED
Thunderbird 47.0
Tracking Status
thunderbird45 --- fixed
thunderbird46 --- fixed
thunderbird47 --- fixed

People

(Reporter: jorgk-bmo, Assigned: jorgk-bmo)

References

Details

(Keywords: regression)

Attachments

(1 file)

Re-opening a saved paintext draft inserts a <div moz-forward-container>, regression from bug 736584.

Sorry about that. There is an
  if (isForwarded) {
missing in the plaintext processing.

I'll submit a patch in the next few hours.
Assignee: nobody → mozilla
Blocks: 736584
Status: NEW → ASSIGNED
Keywords: regression
So sorry about this omission. I went to a Mozilla policy meeting today and on the subway it occurred to me that in the HTML part there was an "if (isForwarded) {" which was missing from the plaintext part.

So I tried the plaintext, and sure enough, re-opening a saved plaintext draft runs through the same processing in adds the container which we don't want. The user doesn't notice it unless they inspect the DOM, but anyway, it needs to be fixed.

Sadly the patch looks large, but all it is is adding "if (isForwarded) {}" twice and changing the indentation.

BTW: I've seen Mozreview in action and is doesn't flag blocks whose indentation has changed.

Sorry again for the extra hassle.
Attachment #8721697 - Flags: review?(mkmelin+mozilla)
Attachment #8721697 - Flags: review?(mkmelin+mozilla) → review+
https://hg.mozilla.org/comm-central/rev/55cda620d5fd

Note TB 45 is only affected if bug 736584 is approved for beta as requested.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 47.0
Comment on attachment 8721697 [details] [diff] [review]
adding the missing if (isForwarded)

[Approval Request Comment]
Regression caused by (bug #): Bug 736584
Risk to taking this patch (and alternatives if risky):
If bug 736584 is accepted into beta, this needs to go too since it represents a two line amendment.
Attachment #8721697 - Flags: approval-comm-beta?
Attachment #8721697 - Flags: approval-comm-aurora+
Comment on attachment 8721697 [details] [diff] [review]
adding the missing if (isForwarded)

http://hg.mozilla.org/releases/comm-esr45/rev/4f7be0c8a92b
Attachment #8721697 - Flags: approval-comm-beta? → approval-comm-beta+
Attachment #8721697 - Flags: approval-comm-beta+ → approval-comm-esr45+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: