Closed
Bug 347483
Opened 19 years ago
Closed 19 years ago
'this.userModes has no properties' connecting to moznet
Categories
(Other Applications Graveyard :: ChatZilla, defect)
Other Applications Graveyard
ChatZilla
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ajschult784, Assigned: bugzilla-mozilla-20000923)
References
Details
(Keywords: regression, Whiteboard: [cz-0.9.76])
Attachments
(1 file)
2.12 KB,
patch
|
samuel
:
review+
|
Details | Diff | Splinter Review |
I get this error twice when connecting to moznet with current SeaMonkey trunk. I don't see any noticeable symptoms.
cz: Error routing event server.notice: + message (string) 'this.userModes has no properties'
+ fileName (string) 'chrome://chatzilla/content/lib/js/irc.js'
+ lineNumber (number) 2292
+ stack (string) 275 chars
+ name (string) 'TypeError'
*
in onNotice
TypeError: this.userModes has no properties
cz: serv_notice([object Object])@chrome://chatzilla/content/lib/js/irc.js:2292
ep_routeevent([object Object])@chrome://chatzilla/content/lib/js/events.js:238
ep_stepevents()@chrome://chatzilla/content/lib/js/events.js:306
mainStep()@chrome://chatzilla/content/static.js:1778
The parts of the code that would set userModes are executed later. This is an apparent regression from bug 330990
Assignee | ||
Comment 1•19 years ago
|
||
This will, I think, cause the dropping of all the notices sent before the first normal message during connection - hence, major security.
The code for setting up the userModes, and other stuff, waits for the 001 to initialise stuff (it doesn't init it when the server objects are created, as that'd be at application startup, which'd suck).
Correct solution would be to box in the prefix handling code in onNotice to not check if there's no userModes data - privmsgs shouldn't have the same issue, as they aren't sent before the 001, but could be protected likewise.
Severity: normal → major
OS: Linux → All
Hardware: PC → All
Assignee | ||
Updated•19 years ago
|
Assignee: rginda → silver
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•19 years ago
|
||
Attachment #233368 -
Flags: review?(samuel)
Comment 3•19 years ago
|
||
Comment on attachment 233368 [details] [diff] [review]
Only strip prefixes if we know what they are
Does userModes always exist? If not, then please change it to avoid the warning.
Attachment #233368 -
Flags: review?(samuel) → review+
Assignee | ||
Comment 4•19 years ago
|
||
It does, it's just null until 001, which sets it to the defaults.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/irc/js/lib/irc.js&rev=1.98&mark=491#469
Assignee | ||
Comment 5•19 years ago
|
||
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•19 years ago
|
Whiteboard: [cz-0.9.76]
Updated•2 months ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•