Strengthening special cases language in API exposure guidelines

2014-04-21 Thread Andrew Overholt
Hi, I've been told that it would be nice if we had stronger language in our API exposure guidelines [1] around when we deviate from them. This is mostly applicable when we expose things to Firefox OS applications. The changes I propose to the Special cases section [2] are: -There will of

Rendering meeting today, Monday 5:30pm PDT (the later time)

2014-04-21 Thread Milan Sreckovic
(Sorry for the late notice, I should have sent this out before the weekend, but the holiday meant I missed the reminder.) The Rendering meeting is about all things Gfx, Image, Layout, and Media. It takes place every second Monday, alternating between 2:30pm PDT and 5:30pm PDT. The next

Re: Removing [PID] prefix from |make mozmill| warning/error/assertion lines?

2014-04-21 Thread Steve Fink
On Sat 19 Apr 2014 08:36:22 AM PDT, ISHIKAWA,chiaki wrote: egrep ^(\\[[0-9]*\\] |)WARNING $1 | egrep NS_ENSURE | grep -v sort operation has occurred for the SQL statement | sort | uniq -f1 -c | sort -n -r It'd be easier if you threw in a *little* bit of perl: perl -lne 'print $1 if

Re: Landing c-c-breaking changes that remove c-c-only code from m-c

2014-04-21 Thread Joshua Cranmer 
On 4/21/2014 11:50 AM, Ehsan Akhgari wrote: You can check CONFIG['MOZ_BUILD_APP'] against what you pass to --enable-application in mozconfig files. So that would be 'mailnews' (or 'mail'?) and 'suite' for Thunderbird and Seamonkey respectively. Actually, CONFIG['MOZ_THUNDERBIRD'] and

Re: Using promises from C++

2014-04-21 Thread Joshua Cranmer 
On 4/21/2014 9:34 PM, Boris Zbarsky wrote: On 4/21/14, 7:31 PM, Joshua Cranmer  wrote: Now, creating a Promise (via mozilla::dom::Promise) from C++ and passing it to JS is possible but kind of difficult, since I need to materialize an nsIGlobalObject which requires too much code. You

Re: Using promises from C++

2014-04-21 Thread Boris Zbarsky
On 4/21/14, 11:35 PM, Joshua Cranmer  wrote: I'm referring to using a Promise, essentially, in backend code of Thunderbird. There is no window I mean Window in the DOM Window sense. Promises can be created using some other global (which one is up to the person creating it), but typically

Re: Using promises from C++

2014-04-21 Thread Joshua Cranmer 
On 4/21/2014 10:52 PM, Boris Zbarsky wrote: On 4/21/14, 11:35 PM, Joshua Cranmer  wrote: I'm referring to using a Promise, essentially, in backend code of Thunderbird. There is no window I mean Window in the DOM Window sense. Promises can be created using some other global (which one is up

Re: Using promises from C++

2014-04-21 Thread Boris Zbarsky
On 4/22/14, 12:24 AM, Joshua Cranmer  wrote: I managed to, in one of my playground techniques, create a global using a backstage pass and some xpconnect APIs, so it's not impossible but it is damn annoying. Right. If you don't have a global to start with, your life will _really_ suck if you