Closed
Bug 145568
Opened 24 years ago
Closed 24 years ago
Composing text email generates lots of JavaScript errors on CVS 2002051[89]
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 156918
People
(Reporter: Mitch, Assigned: vparthas)
References
Details
When composing, forwarding text email a lot of javascript errors
are thrown up in the javascript console such as:
Error: redecleration od const MOZ_HELP_URI
Source File: chrome://help/content/contextHelp.js Line: 1
and quite a few of these:
Error: uncaught exception:[Exception..."Component returned failure code:
0x80004001 (NS_ERROR_NOT_IMPLEMENTED)
[nslEditorShell.GetSelectedOrParentTableElement]" nsresult: "0x80004001
(NS_ERROR_NOT_IMPLEMENTED)" location:"JS frame ::
chrome://editor/content/editor.js :: goUpdateTableMenuItem :: line 2462" data: no]
See also bug 145475
Comment 1•24 years ago
|
||
confirming, all platforms.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Comment 2•24 years ago
|
||
*** Bug 145678 has been marked as a duplicate of this bug. ***
Comment 4•24 years ago
|
||
The source of this problem is obviously the updating of commands in the Table
submenu, which is under "Format" in Mail Composer. It looks like the entire
"Format" menu is hidden in Plain Text Mail Composer, but the command updating
is still occuring. Looking over the XUL, it's not clear to me why this is
happening, but Mail Composer manages commands very differently than HTML Composer,
so I'll let Varada investigate that.
Comment 5•24 years ago
|
||
*** Bug 149552 has been marked as a duplicate of this bug. ***
Comment 6•24 years ago
|
||
*** Bug 154518 has been marked as a duplicate of this bug. ***
Comment 7•24 years ago
|
||
here's the problem:
goUpdateTableMenuItem in editor.js calls
editorShell.GetSelectedOrParentTableElement. The problem is that
GetSelectedOrParentTableElement only works for HTML format and not plaintext
(why would there by a table in plaintext, eh?). If the user composes in HTML,
this bug never shows up, but plaintext users will always see this.
One could argue that a plaintext composition window should never get into
goUpdateTableMenuItem, but it appears to be called directly from chrome (based
on Javascript Debugger, but I don't know how to figure out exactly where it's
coming from). Fixing it at the source would be the best solution
but simply catch/trying the call to GetSelectedOrParentTableElement is
sufficient to prevent the errors from being generated.
Comment 8•24 years ago
|
||
NOTE: The redeclaration of MOZ_HELP_URI is covered in BUG #141481
Comment 9•24 years ago
|
||
*** Bug 154986 has been marked as a duplicate of this bug. ***
Comment 10•24 years ago
|
||
this was fixed by bug 156918. marking dupe because part of the stated purpose
of that bug was to handle javascript exceptions
*** This bug has been marked as a duplicate of 156918 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Product: MailNews → Core
Updated•18 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•