#instantbird log on 11 26 2011

All times are UTC.

00:00:32 <flo> clokep: do you understand how I can be having a JavaScript Error: "this._proxyCancel is null" {file: "resource:///modules/socket.jsm" line: 207} error on this line http://lxr.instantbird.org/instantbird/source/chat/modules/socket.jsm#205 ?
00:00:39 <flo> I don't see how that can be null :(
00:03:15 <Mic> flo: someone in #js gave an answer: http://pastebin.instantbird.com/1118
00:04:19 <flo> is that behavior specific to the || operator?
00:06:29 <aleth> There is certainly a warning without it.
00:07:12 <aleth> (It doesn't "just" return undefined (anymore))
00:07:12 <Mic> flo: no, && also seems to show it
00:07:32 <flo> to not show it you mean?
00:07:42 <flo> well, && and || are very similar
00:08:00 <flo> but that doesn't really answer my question
00:08:49 <aleth> Maybe the #js answer is not entirely up to date (since those warnings were added just recently)?
00:09:13 <Mic> What else did you mean with your question then?
00:09:32 <flo> is the operator doing something to prevent the warning?
00:10:15 <flo> if so, why/what's that something
00:10:32 <Mic> The previous question sounded very different from that ;)
00:10:51 <aleth> Not really.
00:11:07 <flo> it's the same question from the beginning of the discussion. :-P
00:12:02 <flo> (= I don't understand why ({}.zek || "test") -> no warning, but ({}.zek + "test") -> warning)
00:13:09 <Mic> I meant I answered "is that behavior specific to the || operator?" with "No, since && also shows it" while you were thinking about the initial question as it seems
00:13:43 <Mic> Nevermind ..
00:15:03 <flo> you were playing on the words instead of answering
00:16:43 <Mic> You meant to get such an answer :P
00:20:32 <aleth> Found it :)
00:22:05 <flo> your bug or the answer? :)
00:23:45 <instantbot> aletheia2@fastmail.fm cancelled review?(florian@instantbird .org) for attachment 1025 on bug 1182.
00:23:46 <instantbot> aletheia2@fastmail.fm requested review from florian@instantbird .org for attachment 1027 on bug 1182.
00:23:47 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=1182 nor, --, 1.2, nobody, NEW, "Reference to undefined property" JS warnings
00:23:48 <aleth> The bug :)
00:24:17 <-- igorko has quit (Quit: Instantbird 1.1)
00:26:22 <aleth> Well those warnings took longer than expected... sorry about all the bugspam.
00:27:13 <aleth> I have to concede defeat on "undefined property types[type]"
00:29:31 <flo> don't worry too much :) It's not a disaster if we still have one or two of them.
00:29:42 <flo> what's really annoying is to see lots of them everyday
00:30:01 <flo> those that are currently super annoying to me are those in account.xml and accounts.js
00:30:28 <flo> because I attempt to connect my xmpp accounts very frequently these days ;)
00:30:51 <Mic> "var obj = {}; false || obj.abc" outputs the warning at least.
00:32:10 <-- Plop has quit (Quit: Instantbird 1.1)
00:32:52 * flo would like a nice XMPP console
00:34:03 <aleth> Yeah, the problem is you fail to spot ones you are looking for if the whole window is busy...
00:34:13 <aleth> I'm not even attempting that privatebrowsing one.
00:34:33 <aleth> Btw is there a way to mirror the JS error console to the console? That would be super helpful
00:34:35 <flo> it's probably an easy one
00:35:02 <flo> I have JS errors and strict warning in my terminal with debug builds
00:35:14 <flo> what's annoying is that Cu.reportError doesn't appear in my terminal :(
00:35:32 <aleth> There isn't an about:config flag then?
00:35:34 <flo> (and no, I don't know if you can do it easily without a debug build)
00:35:42 <aleth> OK :(
00:36:00 <flo> it may not be difficult to write an add-on for that
00:36:04 <flo> it may even already exist
00:36:22 <aleth> The problem is in the absence of a debugger that you don't know when the error happens in relation to your dump()s...
00:36:33 <flo> the only thing to do is to setup an error listener, and dump(error.toString()+"\n")
00:36:49 <Mic> Good night
00:36:56 <flo> Mic: Goog night :)
00:37:01 <-- Mic has quit (Quit: Instantbird 1.2a1pre)
00:37:01 <aleth> Night :)
00:37:24 <aleth> On FF I use console^2 which at least is a bit more helpful
00:37:43 <flo> hmm, as clever as it is these days, the completion still gave me a wrong result. Too bad it can't detect that "o" is very close to "i" and when I pressed Mo<tab> I meant "Mic" :-D
00:38:42 <aleth> am not fixing that ;)
00:38:50 <flo> hehe
00:39:23 <aleth> It'll be nice when XMPP and IRC are fully JS, I might dare to take a look at them then :)
00:42:43 --> clokep has joined #instantbird
00:42:43 * ChanServ sets mode +h clokep 
00:44:28 <-- Tomek has quit (Quit: Instantbird 1.1)
00:44:37 <flo> aleth: I may do a few accesses to undefined values at strategic places for you to learn the interesting stuff :-P
00:45:00 <aleth> lol 
00:49:48 <clokep> flo: No idea how that could be null. :-/
00:50:08 <flo> just as a hint, this seems to happen when I'm offline
00:50:34 <flo> I'm wondering if we should add a delete this._proxyCancel in the catch block
00:53:12 <clokep> An XMPP console? Seems like you could make a protocol for that. ;)
00:53:19 <clokep> I just use telent as an IRC console. :P
00:53:37 <flo> I meant something like the error console, but optimized for displaying XML content
00:53:39 <clokep> We could add a try-catch around it, but I still don't see how it can be null inside of that. :-/
00:53:43 <flo> syntax highlighting, etc...
00:54:08 <clokep> :) That would be nice.
00:54:14 <clokep> (And a lot of work, probably. :()
00:55:30 <flo> but would probably buy us some love from XMPP fans ;)
00:56:05 <clokep> :) That actually would be pretty excellent for IRC too (highlighting commands, etc.)
00:56:19 <flo> we also want a per-account console
00:56:27 <flo> useful for twitter too ;)
00:58:01 <clokep> per-account console? I think I filed a bug about having a per protocol console a very long time ago> :P
00:58:39 <flo> we have an encoding issue with JS-XMPP :(
00:58:48 <flo> accents are automatically converted to garbage before sending :(
01:00:24 <clokep> I already fixed my encoding issue. :)
01:00:44 <flo> really?
01:00:49 <flo> have you tried with accents?
01:01:59 <clokep> Hah, no I meant that I fixed my issue w/ &.
01:02:02 <clokep> (HTML encoding.)
01:02:13 <clokep> I don't know how to make accents easily.
01:02:20 <flo> copy paste :-P
01:02:47 <flo> you need to test both sending and receiving anyway
01:02:58 <flo> so you can let someone tell you something containing accents, and just echo it back
01:03:17 --> clokep_js has joined #instantbird
01:03:22 <clokep_js> Would you like to test then?
01:04:04 <flo> clokep_js: éèàçêë
01:04:28 <clokep_js> I got: éèà çêë
01:04:48 <clokep> flo: I received http://pastebin.instantbird.com/1119 
01:04:53 <clokep> And copied & pasted back to you.
01:04:59 <-- clokep_js has quit (Client exited)
01:05:21 <flo> you can compare with what you see on clokep I guess
01:05:34 <clokep> Yes, I did.
01:05:36 <clokep> Aka it's very wrong. :(
01:05:46 <clokep> That's what you get when Americans do things. :P
01:05:49 <flo> not as wrong as my garbage
01:06:21 <flo> it's possible you are just using latin1 while libpurple uses utf8
01:06:39 <clokep> Ah, that's possible.
01:07:58 <flo> I hate encoding bugs :(
01:12:17 --> billysanca has joined #instantbird
01:14:04 <-- billysanca has quit (Quit: Instantbird 1.2a1pre)
01:14:11 --> billysanca has joined #instantbird
01:22:54 <flo> clokep: the WIP I've just attached in bug 1171 should be quite readable already.
01:23:03 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=1171 nor, --, ---, nobody, NEW, Replace the current binary XMPP plugin with a JS implementation
01:31:15 <clokep> I'll look at it soon.
01:31:27 <clokep> This weekend is kind of a bust for me, at my parents.
01:32:41 <-- aleth has quit (Quit: Instantbird 1.2a1pre)
01:33:26 <-- chrisccoulson has quit (Ping timeout)
01:35:26 <flo> I'm annoyed by that encoding bug :(
01:35:37 <flo> it makes the plugin completely unusable :(
01:38:05 <-- mmkmou has left #instantbird ()
01:51:59 <-- clokep has quit (Ping timeout)
01:54:09 <flo> yes!!! I've got something that works :)
02:05:34 <flo> clokep: this is the solution I've used: http://pastebin.instantbird.com/1120
02:08:05 <flo> Good night :)
02:09:12 --> Mook has joined #instantbird
03:00:40 <-- hunsly has quit (Ping timeout)
03:40:00 <-- billysanca has quit (Quit: Instantbird 1.2a1pre)
05:16:16 --> Guido has joined #instantbird
05:22:18 <-- Guido has quit (Connection reset by peer)
05:31:19 --> Guido has joined #instantbird
05:48:45 --> clokep has joined #instantbird
05:48:45 * ChanServ sets mode +h clokep 
05:53:19 <clokep> flo: Yeah, that's pretty much what I was goign to try. :) If that can do multiple charsets it might be good to expand it to do that.
06:05:35 <clokep> flo: is there anything left for bug 761, or should that be checked in now?
06:05:38 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=761 nor, --, ---, clokep, ASSI, JS-Socket fails to properly handle SSL errors
06:09:17 <clokep> The Linux nightly slave was lost, but I don't think anything changed so it doesn't really matter.
06:18:46 <-- clokep has quit (Quit: Instantbird 1.2a1pre)
07:22:06 --> skeledrew has joined #instantbird
08:23:04 <-- gerard-majax has quit (Quit: Ex-Chat)
08:24:09 --> jb has joined #instantbird
08:25:40 --> gerard-majax has joined #instantbird
08:52:15 <-- Mook has quit (Quit: z)
09:15:01 --> Even1 has joined #instantbird
09:21:58 <flo> clokep: hmm, I think we are done with bug 761. I've commited the patch locally, but I've forgot to hg push (both yesterday, and Thursday)
09:22:02 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=761 nor, --, ---, clokep, ASSI, JS-Socket fails to properly handle SSL errors
09:32:41 <-- jb has quit (Ping timeout)
09:51:09 --> mmkmou has joined #instantbird
10:51:09 --> mikk_s has joined #instantbird
10:51:13 <-- mikk_s has quit (Quit: mikk_s)
11:18:59 --> Tomek has joined #instantbird
11:51:18 --> habr100 has joined #instantbird
11:56:24 <-- habr100 has quit (Quit: Instantbird 1.2a1pre)
11:56:27 <-- Guido has quit (Client exited)
11:57:29 <instantbot> Check-in: http://hg.instantbird.org/instantbird/rev/01cc21daf7f6 - Florian Quèze - Fix the win32 buildbot mozconfigs for compatibility with MSVC10.
11:57:30 <instantbot> Check-in: http://hg.instantbird.org/instantbird/rev/13280f6f3093 - Florian Quèze - Bug 761 - JS-Socket fails to properly handle SSL error (+ a few other bug fixes in socket.jsm), r=clokep.
11:57:32 --> Guido has joined #instantbird
12:39:43 --> Mic has joined #instantbird
12:39:44 * ChanServ sets mode +h Mic 
13:02:54 <-- mmkmou has quit (Ping timeout)
13:08:18 <Mic> I think what the "VZ"- social network's servers need to work is what is described in XEP-0106 (i.e. JID escaping).
13:15:32 --> habr100 has joined #instantbird
13:22:20 --> clokep has joined #instantbird
13:22:20 * ChanServ sets mode +h clokep 
13:33:05 <instantbot> clokep@gmail.com set the Resolution field on bug 761 to FIXED.
13:33:07 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=761 nor, --, 1.2, florian, RESO FIXED, JS-Socket fails to properly handle SSL errors
13:35:53 <-- clokep has quit (Quit: Instantbird 1.2a1pre)
13:37:51 --> clokep has joined #instantbird
13:37:51 * ChanServ sets mode +h clokep 
13:43:15 <clokep> Bleh I was going to add a pattern for "xep-ddd"...but the listing of them buffers the numbers with zeros. :(
13:44:01 <clokep> I don't currently support any way to do that, I don't think.
13:49:37 --> aleth has joined #instantbird
14:01:17 <flo> Mic: do you need that only for the username at the time of the connection, or is it needed all the time?
14:03:50 <-- Mic has quit (Ping timeout)
14:04:26 --> Mic has joined #instantbird
14:04:27 * ChanServ sets mode +h Mic 
14:06:49 --> mmkmou has joined #instantbird
14:07:20 <-- clokep has quit (Quit: Instantbird 1.2a1pre)
14:07:32 <Mic> flo: iirc there was something in this draft that said that the JID has always to be presented in the same way.
14:08:52 <Mic> "If an entity (e.g., a client or a gateway) performs JID escaping, it MUST do so consistently (for example, a client or server MUST consistently apply JID escaping and unescaping to the JIDs it handles) so that the entity does not present the same JID in two different ways or present two different JIDs in the same way."
14:09:07 <flo> Mic: but do we present JIDs anywhere in the UI?
14:09:32 <-- mmkmou has left #instantbird ()
14:11:15 <Mic> Isn't the accoutname of a XMPP account its JID?
14:11:36 <Mic> I guess no if you ask this way .. ?
14:11:45 <flo> currently yes.
14:11:51 <flo> there's no good reason for that though
14:12:21 <flo> especially for facebook, I think we should display "username" instead of "username@chat.facebook.com"
14:13:27 <flo> "there's no good reason for that though" (the bad reason was that it's super hard with the libpurple xmpp plugin to do anything else)
14:15:56 <-- flo has quit (Ping timeout)
14:20:15 --> flo has joined #instantbird
14:20:15 * ChanServ sets mode +qo flo flo 
14:20:54 <flo> this laptop turning itself off without a warning when there's still more than 20% of the battery is super annoying
14:21:06 <flo> if I don't replace it soon, I should probably invest in a new battery :-S
14:23:31 <Mic> flo: in case of the VZ networks, we('d) ask the user to enter his login name, which is his email adress (and therefore contains the disallowed @-character).
14:27:03 <Mic> "Typically, escaping is performed only by a client that is processing information provided by a human user in unescaped form".
14:27:15 <flo> Mic: so we just need to escape that while creating the JID from the email address
14:30:22 <Mic> And unescape it if we display it somewhere (the unescape section contains a similiar remark than the one above)
14:31:26 <flo> I don't think it's displayed anywhere to the user
14:31:43 <flo> the full JID is made available to message themes though
14:33:44 <Mic> Oh, all this escaping stuff is only applying to the node part (localpart/the section before the @) of the JID. Sorry that I forgot mentioning that.
14:34:24 <Mic> So if we extract the node name for something (e.g. to use it as account name) then we should still unescape it. 
14:35:40 <flo> the account name won't be escaped in the first place
14:36:56 <Mic> Fine with me ;)
15:03:23 <-- Mic has quit (Quit: Instantbird 1.2a1pre)
15:27:38 <aleth> flo: A possibly useful page: http://www.jabberes.org/servers/
15:35:19 <-- GeekShadow has quit (Ping timeout)
15:37:26 --> GeekShadow has joined #instantbird
15:47:00 --> mmkmou has joined #instantbird
16:33:29 <-- BlueMaxima has quit (Quit: Instantbird 1.1)
16:47:06 <-- Tomek has quit (Quit: Instantbird 1.1)
16:50:49 <-- mmkmou has quit (Quit: Instantbird 1.1a1pre)
17:15:07 <-- habr100 has quit (Connection reset by peer)
17:39:09 <instantbot> aletheia2@fastmail.fm requested review from clokep@gmail.com for attachment 1029 on bug 1032.
17:39:11 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=1032 enh, --, ---, nobody, NEW, Scroll to first unread message when opening hidden conversation
18:15:18 <aleth> flo: why not make Hide Auto-Joins a public add-on? It's too useful to be hidden in the sandbox ;)
18:15:38 <flo> It needs a screenshot :(
18:16:03 <aleth> I think you can convince Even otherwise these days :)
18:16:31 <flo> at the time I wrote it, I thought of it as a short lived experiment that could become the default behavior if it turned out to be right 
18:17:45 <flo> aleth: Do you mean by using a 1px transparent image? I'm an editor on AIO, so I tend to review my add-ons myself, so I don't really need to convince Even to get something out of the sandbox
18:18:23 <aleth> flo: Well, that's what I did, but it was just to be able to click the 'nominate' button and got removed after of course.
18:18:42 <flo> oh, you removed the screenshot after that? :-D
18:18:52 <aleth> It seemed a bit silly ;)
18:19:05 <flo> that website is more than a bit silly ;)
18:20:54 <aleth> And the nomination criteria are not quite correct anyway... doesn't matter much I suppose as long as add-on authors end up coming in here
18:21:25 --> Tomek has joined #instantbird
18:21:37 <aleth> Heh, a "Facebook chat" plugin
18:21:46 <aleth> Another prototype?
18:21:55 <aleth> (long dead of course)
18:23:37 <flo> where?
18:23:43 <flo> if it's my add-on, it should be disabled
18:24:13 <aleth> https://addons.instantbird.org/en-US/instantbird/addon/205
18:46:05 --> Mad_Maks has joined #instantbird
18:58:09 <-- Mad_Maks has quit (Quit: Instantbird 1.2a1pre)
19:03:24 <instantbot> aletheia2@fastmail.fm cancelled review?(clokep@gmail.com) for attachment 1029 on bug 1032.
19:03:25 <instantbot> aletheia2@fastmail.fm requested review from clokep@gmail.com for attachment 1030 on bug 1032.
19:03:27 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=1032 enh, --, ---, nobody, NEW, Scroll to first unread message when opening hidden conversation
19:19:41 <-- aleth has quit (Quit: Instantbird 1.2a1pre)
19:19:53 --> aleth has joined #instantbird
20:32:38 <-- aleth has quit (Quit: Instantbird 1.2a1pre)
20:34:09 --> aleth has joined #instantbird
20:39:10 --> clokep has joined #instantbird
20:39:11 * ChanServ sets mode +h clokep 
20:50:46 <-- clokep has quit (Quit: Instantbird 1.2a1pre)
20:56:34 --> chrisccoulson has joined #instantbird
21:25:03 <-- aleth has quit (Quit: Instantbird 1.2a1pre)
21:26:33 --> aleth has joined #instantbird
21:45:27 --> clokep has joined #instantbird
21:45:27 * ChanServ sets mode +h clokep 
21:49:39 <flo> aleth: how small is your typical conversation window?
21:50:41 <aleth> flo: around 420 pixels vertical browser size (I now know this after doing the patch ;) )
21:51:11 <aleth> Of course it's not fixed, but that's probably around average
21:55:58 <flo> so with Bubbles that displays only 4-5 messages?
21:56:05 <-- aleth has quit (Quit: Instantbird 1.2a1pre)
21:56:12 --> aleth has joined #instantbird
21:57:38 <aleth> No, it's usually more than that, thankfully. But often <10.
21:57:47 <-- clokep has quit (Quit: Instantbird 1.2a1pre)
21:59:10 <aleth> If you count bubbles, always <10.
22:00:25 --> BlueMaxima has joined #instantbird
22:01:14 <flo> oh, you said browser size. I thought that was the size of the whole window :-D
22:01:41 <flo> I see only 11 messages now
22:01:45 <aleth> No ;) Though I do know people who have their chat windows that size. Always tucked into one corner
22:01:56 <flo> only 9 bubbles (3 of which are system messages)
22:02:17 <flo> but do they use conversations on hold?
22:02:32 <-- Guido has quit (Quit: Instantbird 1.1)
22:02:48 <aleth> They use empathy or pidgin :(
22:03:48 <aleth> Btw just using msn for the first time in ages - has it always not supported user icons?
22:04:53 <aleth> It also throws lots of "Couldn't find slpmsg" libpurple errors.
22:05:40 <flo> no
22:05:52 <flo> but the MSN libpurple plugin is really poorly maintained these days
22:06:16 <flo> + we have skipped the last 2 updates because they crashed while attempting to connect during my testing
22:10:43 <aleth> Yup, currently 5 bubbles visible, some with multiple messages, seems typical.
22:11:31 <flo> I wonder how well the MSN xmpp servers work
22:11:41 <flo> and how difficult it would be to support with JS-XMPP ^^
22:21:05 <aleth> ^^ would be a great solution if MSN supports them properly
22:21:28 <aleth> Doesn't AIM have something similar too because of gtalk?
22:45:57 --> clokep has joined #instantbird
22:45:57 * ChanServ sets mode +h clokep 
22:46:31 <flo> aleth: AIM only offers server to server XMPP connections, and only to selected partners
22:46:50 <flo> they used to have a beta XMPP servers that clients could connect to, but they've closed it
23:21:36 --> mmkmou has joined #instantbird
23:22:46 <-- mmkmou has left #instantbird ()
23:42:14 <-- clokep has quit (Ping timeout)
23:44:58 <instantbot> aletheia2@fastmail.fm cancelled review?(clokep@gmail.com) for attachment 1030 on bug 1032.
23:44:59 <instantbot> aletheia2@fastmail.fm requested review from clokep@gmail.com for attachment 1031 on bug 1032.
23:45:01 <instantbot> Bug https://bugzilla.instantbird.org/show_bug.cgi?id=1032 enh, --, ---, nobody, NEW, Scroll to first unread message when opening hidden conversation
23:46:50 <instantbot> aletheia2@fastmail.fm cancelled review?(clokep@gmail.com) for attachment 1031 on bug 1032.
23:46:51 <instantbot> aletheia2@fastmail.fm requested review from clokep@gmail.com for attachment 1032 on bug 1032.