Closed Bug 568180 Opened 15 years ago Closed 12 years ago

unhiding key protected channels shouldn't cause a key prompt to appear

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: svetlana, Assigned: svetlana)

Details

(Whiteboard: [cz-0.9.90])

Attachments

(1 file)

2.33 KB, patch
bugzilla-mozilla-20000923
: review+
Details | Diff | Splinter Review
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 XPCOMViewer/0.9.2 Build Identifier: ChatZilla 0.9.86-2010031920; Firefox 3.6.3, 3.6.4rc, 3.7.a5pre (all of them) The redundant key prompt appears. Reproducible: Always Steps to Reproduce: 1.open ChatZilla 2./server moznet 3./j #chan 4./mode +k test 5.midddle-click the #chan tab to hide it 6.In the menu, go to IRC - Views - #chan to unhide it Actual Results: The "Enter key for url irc://moznet/chan,needkey:" prompt pops up. Whatever you put or hit Cancel, the channel opens anyway. Expected Results: The channel should have opened without the prompt for the key.
I can confirm this in Minefield as XULRunner. (firefox -app ...)
Gryllida wishes this assigned to him, I'm not about to mark as confirmed based on an XULRunner-based test though.
Assignee: rginda → gryllida
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Attached patch fixSplinter Review
Comment on attachment 679879 [details] [diff] [review] fix Review of attachment 679879 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! ::: xul/content/static.js @@ +2035,3 @@ > } > > + if (url.needkey && chan.joined == false) Nit: if (url.needkey && !chan.joined) @@ +2036,5 @@ > > + if (url.needkey && chan.joined == false) > + { > + if (url.key) > + key = url.key; Nit: missing 1 space of indentation here.
Attachment #679879 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.90]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: