#instantbird log on 02 07 2016

All times are UTC.

00:35:21 --> nhnt12 has joined #instantbird
00:35:21 * ChanServ sets mode +h nhnt12 
00:38:30 <clokep_work> Can we do an alert() from a prpl and request data from a user?
00:38:38 <clokep_work> Obviously not OK for 'real' code, but would be mighty useful while testing....
00:38:39 <-- nhnt11 has quit (Ping timeout: 121 seconds)
00:39:24 <-- nhnt12 has quit (Ping timeout: 121 seconds)
00:40:27 <aleth> you'd need the shell equivalent?
00:41:17 <aleth> you can do alert() etc if you can get hold of a window, e.g. Conversations.alert() might work
00:41:36 <-- abdelrhman has quit (Connection closed)
00:43:05 <-- mpmc has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
00:43:55 <aleth> well, Conversations.(something returning a window).alert()
00:43:59 --> nhnt11 has joined #instantbird
00:44:00 * ChanServ sets mode +h nhnt11 
00:48:07 <EionRobb> clokep_work: what lib are you using for parsing the thrift stuff in facebook?
00:48:26 <EionRobb> actually, better question, are you trying to copy the mobile client stuff that the libpurple facebook plugin uses, or just hooking into the messenger.com site?
00:48:27 <clokep_work> EionRobb: I haven't gotten remotely that far yet.
00:48:44 <clokep_work> EionRobb: I'm doing the libpurple facebook stuff. I don't know what messenger.com is.
00:49:23 <clokep_work> Why does Facebook have so many ways to do the same thing? :-S
00:49:36 <EionRobb> clokep_work: have a look at messenger.com then.  it'll save a lot of hair pulling.  there's a lot of deficiencies in the mobile client
00:49:47 <clokep_work> Hmm...will do.
00:49:59 <clokep_work> I'd say I Just wasted a lot of time, but probably not still.
00:50:05 <EionRobb> jgeboski said that he needs to update some of the thrift stuff to deal with new updates in the mobile protocol
00:50:19 <clokep_work> messenger.com should be easier to trace what's happening too.
00:50:33 <EionRobb> yes
00:50:58 <EionRobb> I think jgeboski joked that if he did it again he'd probably just use messenger.com and call it a day :P
00:51:19 <EionRobb> the protocol they use there hasn't changed since they made the backend switch from erlang to php about 6 years ago
00:51:32 <clokep_work> Oh?
00:51:42 <clokep_work> I assume it's just a bunch of JSON messages...
00:51:47 <clokep_work> Since I assume the client is JS.
00:51:52 <EionRobb> yeah
00:51:58 <clokep_work> The hard part is probably doing a log-in dance / parsing HTML pages.
00:52:07 <clokep_work> Which shouldn't be hard w/ Gecko.
00:52:47 <EionRobb> easier in gecko than c :D
00:53:33 <clokep_work> Yeah...
00:55:49 <-- Bollebib has quit (Ping timeout: 121 seconds)
00:59:35 <-- clokep_work has quit (Ping timeout: 121 seconds)
01:20:49 <-- nhnt11 has quit (Ping timeout: 121 seconds)
01:21:33 --> nhnt11 has joined #instantbird
01:21:33 * ChanServ sets mode +h nhnt11 
01:25:54 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
01:28:03 <-- aleth has quit (Ping timeout: 121 seconds)
01:59:01 --> Hadi has joined #instantbird
03:39:11 <instant-buildbot> build #3065 of macosx-nightly-default is complete: Failure [4failed compile]  Build details are at http://buildbot.instantbird.org/builders/macosx-nightly-default/builds/3065
04:00:40 <-- bogdan_maris has quit (Ping timeout: 121 seconds)
04:06:12 --> nhnt11 has joined #instantbird
04:06:12 * ChanServ sets mode +h nhnt11 
04:16:17 <-- nhnt11 has quit (Ping timeout: 121 seconds)
04:43:08 --> nhnt11 has joined #instantbird
04:43:08 * ChanServ sets mode +h nhnt11 
04:52:56 <instant-buildbot> build #596 of linux64-nightly-default is complete: Failure [4failed compile]  Build details are at http://buildbot.instantbird.org/builders/linux64-nightly-default/builds/596
05:39:22 <-- nhnt11 has quit (Ping timeout: 121 seconds)
06:05:35 <-- Hadi has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
07:44:00 --> nhnt11 has joined #instantbird
07:44:00 * ChanServ sets mode +h nhnt11 
07:48:02 <-- nhnt11 has quit (Ping timeout: 121 seconds)
08:45:28 --> bogdan_maris has joined #instantbird
09:03:47 --> aleth has joined #instantbird
09:03:47 * ChanServ sets mode +o aleth 
09:03:56 <-- aleth has quit (Quit: Instantbird 47)
09:05:16 --> abdelrhman has joined #instantbird
09:16:56 --> Bollebib has joined #instantbird
11:47:38 --> mpmc has joined #instantbird
11:48:34 <-- mpmc has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
11:50:28 --> gerard-majax has joined #instantbird
12:11:22 --> CuriousLearner has joined #instantbird
12:37:34 <-- CuriousLearner has quit (Quit: ChatZilla 0.9.92 [Firefox 43.0.4/20160106234723])
12:41:22 <-- BWMerlin has quit (Client exited)
13:15:17 --> unghost has joined #instantbird
13:17:42 <-- abdelrhman has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
13:27:39 --> aleth has joined #instantbird
13:27:39 * ChanServ sets mode +o aleth 
13:49:38 <-- bogdan_maris has quit (Ping timeout: 121 seconds)
14:43:28 --> mpmc has joined #instantbird
15:05:43 <-- micahg has quit (Connection closed)
15:41:22 <-- mpmc has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
15:56:08 <-- gerard-majax has quit (Ping timeout: 121 seconds)
16:08:32 --> bogdan_maris has joined #instantbird
16:38:56 --> clokep_work has joined #instantbird
16:38:56 * ChanServ sets mode +o clokep_work 
16:53:05 <-- clokep_work has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
16:53:06 --> clokep_work1 has joined #instantbird
16:53:06 * ChanServ sets mode +o clokep_work1 
16:55:35 * clokep_work1 is now known as clokep_work 
17:03:49 <clokep_work> So what's a sane way for us to parse an HTML page received of XHR?
17:03:59 <clokep_work> Is there something built into XHR or do I need to use the HTMLParser?
17:09:32 <flo-retina> I think you'll need the HTMLParser
17:09:46 <flo-retina> so... are we scrapping content out of HTML pages?
17:17:02 <clokep_work> I'm unsure.
17:17:05 <clokep_work> Was just asking.
17:17:37 <clokep_work> flo-retina: So it seems the way to do it is to either be similar to what the libpurple Facebook thing does, which is a bunch of HTTP requests + MQTT/Thrift/whatever.
17:17:43 <clokep_work> I haven't quite gotten to the last part yet.
17:17:49 <clokep_work> OR try to emulate the messenger.com website.
17:18:03 <clokep_work> Which means you need to login, so you have to scrap a session off the website, yes.
17:18:08 <clokep_work> scrape
17:20:13 <clokep_work> Thoughts? Opinions? Anger?
17:21:43 <flo-retina> with that second option, are we going to have cookie storage issues (like for Twitter) if the user has 2 facebook accounts?
17:25:47 <clokep_work> That was one of my concerns, yes.
17:26:21 <clokep_work> The other way emulates an e.g. android device and I think as long as you generate a unique 'device ID' you won't have issues like that.
18:08:05 <clokep_work> aleth: Just to make sure I'm not an idiot, when you yield on a Promise it pauses execution until that Promise resolves?
18:12:18 <clokep_work> Hm seems I'm right, yea
18:14:38 --> abdelrhman has joined #instantbird
18:18:22 <aleth> clokep_work: moreover, you're always guaranteed at least one tick of the event loop (with DOM promises at least)
18:19:33 <clokep_work> Yep! :)
18:19:43 <clokep_work> I'm trying to figure out how to handle 2FA in a lame way right now.
18:20:41 <-- abdelrhman has quit (Ping timeout: 121 seconds)
18:20:49 --> abdelrhman has joined #instantbird
18:35:56 <clokep_work> MEh I just got an error message: "Your Facebook Chat account foo is disconnected." in a conversation...anyone know where that comes from?
18:36:03 <clokep_work> I suspect it's because the account is not 'online'?
18:37:06 <aleth> iirc that's when you try to send a message with a disconnected account
18:40:14 <clokep_work> That's SILLY :P
18:41:03 * clokep_work wonders if he can override it.
18:41:45 <clokep_work> I doubt it https://dxr.mozilla.org/comm-central/source/im/content/conversation.xml#322
18:44:06 <aleth> I've thought before the right thing to do in that case would be to show a notification bar and offer to connect the account
18:50:08 <clokep_work> Bah I keep writing JavaThon.
18:52:52 <clokep_work> :)
18:52:57 <clokep_work> Well this is slightly ghetto, but it works.
18:53:24 <aleth> we could give it a special theme to match
18:53:47 <aleth> with that oldschool "under construction" gif maybe ;)
18:54:19 --> gerard-majax has joined #instantbird
19:09:10 <clokep_work> Uh oh...
19:09:20 <clokep_work> I'm in the confused state of what all the different aliases are in jsProtoHelper. :-D
19:15:52 * clokep_work has to go.
19:15:57 <clokep_work> Making progress though. ;)
19:19:59 <-- clokep_work has quit (Ping timeout: 121 seconds)
19:38:42 <flo-retina> being confused by aliases does sound like progress! :)
19:55:12 --> Hadi has joined #instantbird
19:59:19 <Hadi> freaktechnik:  Hi there. are there any new updates to the twitch plugin? the one that you compiled for me a while ago doesn't work anymore
20:04:17 <-- abdelrhman has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
20:05:14 --> sherief has joined #instantbird
20:07:32 <-- sherief has quit (Quit: Leaving.)
20:07:37 --> sherief has joined #instantbird
20:12:42 <-- sherief has quit (Quit: Leaving.)
22:03:06 <-- freaktechnik has quit (Ping timeout: 121 seconds)
22:04:45 --> freaktechnik has joined #instantbird
22:33:46 <-- unghost has quit (A TLS packet with unexpected length was received.)
22:46:33 --> mpmc has joined #instantbird
22:59:14 --> mpmc1 has joined #instantbird
23:10:25 <-- mpmc1 has quit (A TLS packet with unexpected length was received.)
23:14:50 --> nhnt11 has joined #instantbird
23:14:50 * ChanServ sets mode +h nhnt11 
23:16:40 <-- bogdan_maris has quit (Ping timeout: 121 seconds)