Closed Bug 282713 Opened 21 years ago Closed 21 years ago

Hiding last (as in the only) tab causes spewage

Categories

(Other Applications Graveyard :: ChatZilla, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tuukka.tolvanen, Assigned: tuukka.tolvanen)

Details

(Whiteboard: [cz-0.9.68])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b) Gecko/20050213 Firefox/1.0+ Build Identifier: Chatzilla 0.9.67 [Firefox 1.0+/20050213] Hiding last tab causes [ERROR] Internal error dispatching command “hide-view”. [ERROR] TypeError: client.viewsArray[i] has no properties @ <chrome://chatzilla/content/commands.js> 1448 'Hide Tab' is disabled in the context menu when only one tab is open, but middle-clicking a tab "works". Reproducible: Always Steps to Reproduce: 1. Middle click on each chatzilla tab. Actual Results: The hidden view popped back up with an exception. Expected Results: Nothing, perhaps with a message.
Attached patch patch1Splinter Review
Add check and associared error message against client.viewsArray.length < 2 to cmdHideView, as in cmdDeleteView.
Assignee: rginda → t.bugz
Status: NEW → ASSIGNED
Attachment #174686 - Flags: review?(silver)
Attachment #174686 - Flags: review?(silver) → review+
Checked in --> FIXED. In approximately 55 minutes a build with this fix will be available from: http://twpol.dyndns.org/mozilla/chatzilla/nightly/
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.68]
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: