Closed Bug 118594 Opened 23 years ago Closed 23 years ago

JS error: redeclaration of const MODE_COMPLETE (contentAreaUtils.js)

Categories

(SeaMonkey :: UI Design, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.8

People

(Reporter: Brade, Assigned: Brade)

Details

I see this JS error in my console today on my Mac debug build when I opened a
Composer window:
  JavaScript error:
  chrome://communicator/content/contentAreaUtils.js line 1: redeclaration of
const MODE_COMPLETE
to reproduce:
- start compose
- press "new" until you see the error in the javascript console
this means that the js file is included twice.
It's only declared once in the js file, this is an editor specific chrome issue.
I suspect removing the include of contentAreaUtils.js from editor.xul will fix
the problem (sidebarOverlay.xul pulls in contentAreaContextOverlay.xul which
pulls in contentAreaUtils.js)
Assignee: ben → brade
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Here is the patch that Ben gave sr= to:

Index: ui/composer/content/editor.xul
===================================================================
RCS file: /cvsroot/mozilla/editor/ui/composer/content/editor.xul,v
retrieving revision 1.122
diff -u -2 -r1.122 editor.xul
--- ui/composer/content/editor.xul	9 Jan 2002 13:51:18 -0000	1.122
+++ ui/composer/content/editor.xul	14 Jan 2002 22:40:15 -0000
@@ -67,5 +67,4 @@
   <script type="application/x-javascript"
src="chrome://editor/content/EditorContextMenu.js"/>
   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
-  <script type="application/x-javascript"
src="chrome://communicator/content/contentAreaUtils.js"/>
   <script type="application/x-javascript"
src="chrome://communicator/content/contentAreaDD.js"/>
   <script type="application/x-javascript"
src="chrome://communicator/content/contentAreaClick.js"/>
r=timeless
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: sairuh → sujay
QA Contact: sujay → paw
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.