#instantbird log on 04 15 2016

All times are UTC.

00:15:31 --> Alex2 has joined #instantbird
00:18:27 --> nhnt11 has joined #instantbird
00:18:27 * ChanServ sets mode +h nhnt11 
01:05:10 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
01:05:40 --> nhnt11 has joined #instantbird
01:05:40 * ChanServ sets mode +h nhnt11 
01:06:25 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
01:48:37 --> durwasa has joined #instantbird
03:07:49 <-- clokep_work has quit (Ping timeout: 121 seconds)
03:25:58 <instant-buildbot> build #3139 of macosx-nightly-default is complete: Success [3build successful]  Build details are at http://buildbot.instantbird.org/builders/macosx-nightly-default/builds/3139
03:45:05 --> mpmc has joined #instantbird
04:10:48 <instant-buildbot> build #666 of linux64-nightly-default is complete: Failure [4failed shell_6]  Build details are at http://buildbot.instantbird.org/builders/linux64-nightly-default/builds/666
04:13:07 <-- durwasa has quit (Ping timeout: 121 seconds)
04:16:19 --> durwasa has joined #instantbird
04:30:30 <-- bgmCoder has quit (Ping timeout: 121 seconds)
04:31:38 --> mpmc1 has joined #instantbird
04:45:49 --> Bollebib has joined #instantbird
05:08:43 --> bogdan_maris has joined #instantbird
05:55:46 --> nhnt11 has joined #instantbird
05:55:46 * ChanServ sets mode +h nhnt11 
05:55:51 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
05:57:27 --> nhnt11 has joined #instantbird
05:57:27 * ChanServ sets mode +h nhnt11 
05:58:59 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
05:59:41 --> nhnt11 has joined #instantbird
05:59:41 * ChanServ sets mode +h nhnt11 
05:59:41 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
06:00:49 <-- EionRobb has quit (Quit: Leaving.)
06:02:09 --> nhnt11 has joined #instantbird
06:02:09 * ChanServ sets mode +h nhnt11 
06:02:12 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
06:28:00 --> nhnt11 has joined #instantbird
06:28:00 * ChanServ sets mode +h nhnt11 
06:39:34 --> EionRobb has joined #instantbird
06:52:16 <-- nhnt11 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
07:48:35 <-- durwasa has quit (Ping timeout: 121 seconds)
08:13:33 --> gerard-majax has joined #instantbird
08:29:22 <-- mpmc1 has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
08:35:40 <-- gerard-majax has quit (Ping timeout: 121 seconds)
08:37:22 --> gerard-majax has joined #instantbird
09:02:16 <-- gerard-majax has quit (Ping timeout: 121 seconds)
09:35:00 --> BWMerlin has joined #instantbird
09:43:42 --> gerard-majax has joined #instantbird
09:47:02 <-- Alex2 has quit (Quit: Instantbird 1.5 -- http://www.instantbird.com)
10:08:30 --> durwasa has joined #instantbird
10:20:59 --> aleth has joined #instantbird
10:20:59 * ChanServ sets mode +o aleth 
10:28:39 --> CuriousLearner has joined #instantbird
10:50:54 --> abdelrhman has joined #instantbird
11:10:37 <-- abdelrhman has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
11:20:38 <-- Bollebib has quit (Ping timeout: 121 seconds)
11:24:54 --> Bollebib has joined #instantbird
11:25:38 <-- BWMerlin has quit (Client exited)
11:26:29 <-- CuriousLearner has quit (Quit: ChatZilla 0.9.92 [Firefox 43.0.4/20160106234723])
11:55:39 --> clokep_work has joined #instantbird
11:55:39 * ChanServ sets mode +o clokep_work 
11:58:42 <-- mpmc has quit (A TLS packet with unexpected length was received.)
12:08:00 <-- clokep_work has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
12:08:06 --> clokep_work has joined #instantbird
12:08:06 * ChanServ sets mode +o clokep_work 
12:52:16 <-- clokep_work has quit (Ping timeout: 121 seconds)
13:01:33 --> bgmCoder has joined #instantbird
13:19:01 --> clokep_work has joined #instantbird
13:19:01 * ChanServ sets mode +o clokep_work 
13:34:00 <-- clokep_work has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
13:34:05 --> clokep_work has joined #instantbird
13:34:05 * ChanServ sets mode +o clokep_work 
13:40:46 --> Mnyromyr has joined #instantbird
13:59:09 <-- clokep_work has quit (Ping timeout: 121 seconds)
14:07:58 --> clokep_work has joined #instantbird
14:07:58 * ChanServ sets mode +o clokep_work 
14:10:55 <-- bogdan_maris has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
14:13:03 <-- clokep_work has quit (Ping timeout: 121 seconds)
14:16:12 --> clokep_work has joined #instantbird
14:16:12 * ChanServ sets mode +o clokep_work 
14:16:12 <-- clokep_work has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
14:16:16 --> clokep_work has joined #instantbird
14:16:16 * ChanServ sets mode +o clokep_work 
14:16:37 <clokep_work> Anyone else having issues staying connected?
14:16:49 <clokep_work> I think there was a couple issues on the mailing list about this too.
14:44:50 <-- clokep_work has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
14:44:54 --> clokep_work has joined #instantbird
14:44:54 * ChanServ sets mode +o clokep_work 
14:48:17 <clokep_work> For anyone curious: https://github.com/instantbird/not_today and there's an updated version of Not Today! if  yo're using it.
15:35:27 --> clokep_work1 has joined #instantbird
15:35:27 * ChanServ sets mode +o clokep_work1 
15:35:51 <-- clokep_work has quit (Ping timeout: 121 seconds)
15:35:51 * clokep_work1 is now known as clokep_work 
15:54:47 <-- gerard-majax has quit (Ping timeout: 121 seconds)
15:57:37 <-- clokep_work has quit (Connection closed)
15:57:40 --> clokep_work has joined #instantbird
15:57:40 * ChanServ sets mode +o clokep_work 
16:03:24 <-- durwasa has quit (Ping timeout: 121 seconds)
16:19:24 --> clokep_work1 has joined #instantbird
16:19:24 * ChanServ sets mode +o clokep_work1 
16:19:24 <-- clokep_work has quit (Connection closed)
16:19:24 * clokep_work1 is now known as clokep_work 
16:30:52 --> gerard-majax has joined #instantbird
16:31:45 <-- micahg has quit (Ping timeout: 121 seconds)
16:32:55 --> micahg has joined #instantbird
16:47:51 <-- gerard-majax has quit (Ping timeout: 121 seconds)
16:50:54 --> gerard-majax has joined #instantbird
17:04:19 <-- micahg has quit (Ping timeout: 121 seconds)
17:05:03 --> micahg has joined #instantbird
17:07:17 <-- clokep_work has quit (Ping timeout: 121 seconds)
17:07:35 --> clokep_work has joined #instantbird
17:07:35 * ChanServ sets mode +o clokep_work 
17:14:31 --> durwasa has joined #instantbird
17:18:37 <-- gerard-majax has quit (Ping timeout: 121 seconds)
17:23:03 --> gerard-majax has joined #instantbird
17:38:55 <-- gerard-majax has quit (Ping timeout: 121 seconds)
17:45:20 --> arlolra has joined #instantbird
17:50:23 <-- micahg has quit (Ping timeout: 121 seconds)
17:58:16 --> micahg has joined #instantbird
18:04:16 --> unghost has joined #instantbird
18:25:31 --> gerard-majax has joined #instantbird
18:41:44 <-- gerard-majax has quit (Ping timeout: 121 seconds)
18:52:38 <-- clokep_work has quit (Ping timeout: 121 seconds)
19:00:07 --> clokep_work has joined #instantbird
19:00:07 * ChanServ sets mode +o clokep_work 
19:26:02 <clokep_work> Meh why do JavaScript APIs for HTTP suck? :P
19:28:10 <aleth> never used it, but have you looked at fetch()? https://hacks.mozilla.org/2015/03/this-api-is-so-fetching/
19:29:21 <freaktechnik> fetch is awesum
19:29:27 <clokep_work> I just came across it actually.
19:29:36 <freaktechnik> and it's about to get Streams, too
19:30:04 <clokep_work> freaktechnik, aleth: Do you know if it supports a 'session'? I.e. separate of cookies into separate sets of requests?
19:30:12 <clokep_work> So I can have two sets of requests to the same website but using different cookies.
19:30:19 <clokep_work> Seems to be a simple oncept, but not many libraries support it.
19:30:52 <aleth> I guess the problem there is that gecko has no built-in session support
19:31:10 <freaktechnik> I think the cookie handling is origin based.
19:31:16 <aleth> try asking ehsan
19:31:19 <freaktechnik> so one set of cookies per origin
19:32:08 <freaktechnik> https://developer.mozilla.org/en-US/docs/Web/API/Request/Request lets you configure everything you can currently for one request, afaik
19:32:28 <freaktechnik> but I don't know if setting the Cookie header manually works ;)
19:33:04 <clokep_work> freaktechnik: Right I'm talking about the same origin. ;)
19:33:29 <freaktechnik> I know
19:34:14 <clokep_work> freaktechnik: Huh...I didn't think of manually sending cookies.
19:34:18 <clokep_work> That sounds painful though. :-D
19:34:22 <freaktechnik> ...yeah
19:34:23 <clokep_work> But possibly doable.
19:34:27 <clokep_work> If you wrap it nicely.
19:34:32 <aleth> you don't mean set-cookie in the header?
19:36:52 <aleth> does 5.5.13.1 help?
19:36:54 <aleth> https://fetch.spec.whatwg.org/
19:37:28 <aleth> Looks like the api explicitly doesn't like you having multiple cookie stores
19:38:45 <freaktechnik> so if you manually set the Cookies header it'd be subject to the header merging algo, probably
19:41:38 <aleth> probably easier to just swap out the cookies via Services.cookies when required
19:43:39 <clokep_work> Yeah that was my second thing.
19:43:43 <clokep_work> You can just wrap it in an API, I guess.
19:43:46 <clokep_work> That does it magically.
19:45:38 <clokep_work> Maybe I'll try to do this today.
19:46:29 <aleth> do you need a cookie during the whole session or only for the initial auth?
19:46:52 <clokep_work> I so liked my little XMLHttpRequest Promise API though: http://pastebin.instantbird.com/2717479
19:47:09 <aleth> does the job ;)
19:49:06 <aleth> you can use Object.assign to avoid the leak
19:50:06 <aleth> httpRequest(aUrl, Object.assign({onLoad: aResolve, onError: aReject}, aOptions))
19:54:34 <clokep_work> I didn't request review yet! :P
19:54:35 <clokep_work> But thanks.
19:54:52 <clokep_work> aleth: I might need it just for login, I haven't played too much yet...
20:05:01 --> nhnt11 has joined #instantbird
20:05:01 * ChanServ sets mode +h nhnt11 
20:09:31 <-- arlolra has quit (Connection closed)
20:09:37 --> arlolra has joined #instantbird
20:14:10 <-- clokep_work has quit (Ping timeout: 121 seconds)
20:26:24 <freaktechnik> if you only need to get a token or something, a temporary private browsing context might be enough
20:37:55 --> clokep_work has joined #instantbird
20:37:55 * ChanServ sets mode +o clokep_work 
21:09:34 <-- unghost has quit (Connection closed)
21:14:13 --> unghost has joined #instantbird
21:16:00 <clokep_work> I suspect I need it for everything...but who knows.
21:16:03 <clokep_work> Website,s ya kno?w
21:16:52 <freaktechnik> That's why official APIs are pretty cool ;)
21:17:09 <clokep_work> I agree. :)
21:19:51 <clokep_work> freaktechnik: So any idea if I can use the fetch API in xpcshell?
21:20:25 <freaktechnik> Uh, what does xpcshell emboy? I've never bothered to know what that exactly is...
21:20:41 <clokep_work> "In chrome code"?
21:20:59 <freaktechnik> oh, okay
21:21:24 <freaktechnik> you can probably import it with Cu.importGlobalProperties or something
21:21:42 <clokep_work> Yeah I was just looking up the API for that!
21:21:44 <freaktechnik> but I'd have to check
21:21:45 <clokep_work> You got to it before I did. :P
21:22:13 <freaktechnik> also, screw MDN not including everything in searches by default now :(
21:23:23 <freaktechnik> hmm, it's not in the list for importGlobalProperties :(
21:23:25 <freaktechnik> but XHR is...
21:23:29 <freaktechnik> whyyy
21:24:50 <clokep_work> :'(
21:24:55 <freaktechnik> but it should be: https://dxr.mozilla.org/mozilla-central/source/dom/tests/unit/test_Fetch.js#6
21:25:06 <freaktechnik> so let's fix that :)
21:29:39 <clokep_work> Woot!
21:29:41 <clokep_work> Good eye.
21:29:45 <clokep_work> I was trying to find the definition.
21:29:50 <clokep_work> Looking for tests is alwasys better...
21:29:54 <freaktechnik> it's a webidl like all the DOM APIs
21:30:13 <freaktechnik> I looked for |importGlobalProperties([ "fetch" ])|
21:30:19 <freaktechnik> because that's what would solve it ;)
21:30:40 <freaktechnik> but according to some people importGlobalProperties should be able to import any web context global...
21:31:02 <clokep_work> Oh? Interesting.
21:31:07 <clokep_work> I can't seem to import Request though. :-\
21:31:10 <clokep_work> https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
21:31:15 <clokep_work> Which is used in all the advanced fetch stuff.
21:31:55 * clokep_work has to go!
21:31:59 <clokep_work> meeting friends for dinner...
21:32:10 <freaktechnik> it seems you can pass it as object instead of a Request instance.
21:32:42 <freaktechnik> (the init object param)
21:32:44 <clokep_work> That's gross though. :P
21:33:01 <freaktechnik> yes
21:33:08 * clokep_work sighs.
21:33:14 <clokep_work> Ciao! Thank you for finding the resources for me. :)
21:38:08 <-- clokep_work has quit (Ping timeout: 121 seconds)
21:59:53 <-- durwasa has quit (Ping timeout: 121 seconds)
22:38:49 --> mpmc has joined #instantbird
23:38:31 <-- Mnyromyr has quit (Quit: ChatZilla 0.9.92 [SeaMonkey 2.40/20160118183220])
23:40:18 <-- mpmc has quit (Quit: Instantbird 1.6a1pre -- http://www.instantbird.com)
23:55:26 <-- Bollebib has quit (Ping timeout: 121 seconds)
23:59:00 <-- aleth has quit (Quit: Instantbird 48)