Closed Bug 320117 Opened 19 years ago Closed 19 years ago

Syntax Error in chrome://editor/content/EdInsertTOC.js

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Assigned: ray)

References

()

Details

(Keywords: fixed1.8.0.2, fixed1.8.1)

Attachments

(1 file)

Thunderbird 1.5 rc2

Error: syntax error
Source File: chrome://editor/content/EdInsertTOC.js
Line: 347, Column: 4
Source Code:
    else {
I'll take this and submit a patch tonight.
Status: NEW → ASSIGNED
Assignee: mscott → bugzilla.mozilla
Status: ASSIGNED → NEW
Ok. we need this for the 1.8 branch as well.
Seperate patches for trunk and the 1.8 branch?
The same patch will probably apply to both. We just need to get approval for branch check in I think.
Caused by the patch from bug 121495 (revision comment refers to the wrong bug #). Rather unfortunate that it's been this way on the trunk since 2004-04-15.
Patch fixes the extra } in the line.
Attachment #205731 - Flags: review?(bienvenu)
Attachment #205731 - Flags: approval1.8.0.1?
Why not use some of the tricks the DOM implementation has learnt over the last few years? Simply setting toc.textContent = "" should do the same as the loop.
Thanks, but I'll wait until someone reviews the patch before changing it. :)
Attachment #205731 - Flags: review?(bienvenu) → review+
Attachment #205731 - Flags: superreview?(mscott)
Comment on attachment 205731 [details] [diff] [review]
Patch removes an extra }

A change like this doesn't require super-review. I can check it in on the trunk later today, if no one else does.
Attachment #205731 - Flags: superreview?(mscott)
Great, thanks.  I haven't got checkin privs so if you can, that would be great.
Depends on: 121495
Whiteboard: [checkin needed]
Scott - where do you want this to land?
Landed on the trunk.
mozilla/editor/ui/dialogs/content/EdInsertTOC.js; new revision: 1.3;
Status: NEW → RESOLVED
Closed: 19 years ago
Hardware: PC → All
Resolution: --- → FIXED
Whiteboard: [checkin needed]
This should land on the appropriate 1.8 branch so that Thunderbird 1.5 can have it as well.
it's too late for thunderbird 1.5, we have bits in hand. Will have to wait for 1.5.0.1 unless we are forced to respin.
Comment on attachment 205731 [details] [diff] [review]
Patch removes an extra }

schrep delegates this to me. We'll want this for tbird 1.5.0.1 so approving for that branch.
Attachment #205731 - Flags: approval1.8.0.1? → approval1.8.0.1+
Checked in on the MOZILLA_1_8_0_BRANCH.
mozilla/editor/ui/dialogs/content/EdInsertTOC.js; new revision: 1.2.36.1;
Keywords: fixed1.8.0.1
Comment on attachment 205731 [details] [diff] [review]
Patch removes an extra }

I guess this should land on the 1.8 branch as well?
Attachment #205731 - Flags: approval1.8.1?
Comment on attachment 205731 [details] [diff] [review]
Patch removes an extra }

yes it should.
Attachment #205731 - Flags: approval1.8.1? → approval1.8.1+
Landed on the MOZILLA_1_8_BRANCH as well. mozilla/editor/ui/dialogs/content/EdInsertTOC.js; new revision: 1.2.28.1;
Blocks: 121495
No longer depends on: 121495
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: