Closed Bug 305663 Opened 19 years ago Closed 19 years ago

Command list includes eval twice

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nanamin, Assigned: bugzilla-mozilla-20000923)

Details

(Whiteboard: [cz-patch][cz-0.9.69])

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050123
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050123

The "eval" command is listed twice in the list of commands the chatzilla client
displays.

"enable-plugin, eval, eval, exit, exit-mozilla, "

Reproducible: Always

Steps to Reproduce:
1. Run chatzilla
2. Look at the commands list under the 'client' tab


Actual Results:  
duplicate of the 'eval' command listed

Expected Results:  
one listing per command
This bug still exists with current trunk.
Assignee: general → rginda
Status: UNCONFIRMED → NEW
Component: General → ChatZilla
Ever confirmed: true
Product: Mozilla Application Suite → Other Applications
QA Contact: general → samuel
The problem are the lines under
http://lxr.mozilla.org/mozilla/source/extensions/irc/js/lib/command-manager.js#460
I guess this changed somewhere between Mozilla 1.5b and now, but i don't know when.
We need to work out when and why 'eval' was not included naturally. One possible solution is to just add it, if the command exists, iff the list does not already include it.

Also, this is anything but a typo!
OS: Linux → All
Hardware: PC → All
Summary: typo in chatzilla commands list - eval duplicated → Command list includes eval twice
Version: unspecified → Trunk
it may have something to do with the fact that *every* object has an eval method...


[EVAL-IN] "eval" in {}
[EVAL-OUT] true
From my testing suite, it seems that Mozilla 1.0 has the problem noted in the
Command Manager comment, and 1.4 and 1.7 don't. I have a fix, patch in a sec.
Assignee: rginda → silver
Whiteboard: [cz-patch][cz-0.9.68.6]
Status: NEW → ASSIGNED
Attachment #194769 - Flags: review?(samuel)
Attachment #194769 - Attachment is obsolete: true
Attachment #194770 - Flags: review?(samuel)
Attachment #194769 - Flags: review?(samuel)
Attachment #194770 - Flags: review?(samuel) → review+
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [cz-patch][cz-0.9.68.6] → [cz-patch][cz-0.9.69]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: