Re: Telemetry experiments need to be easier (on Nightly)

2016-04-20 Thread Jared Hirsch
Hi all, I wrote a telemetry experiment last year[1], and I also found the process challenging to navigate. I found that many important details were undocumented, but were mentioned in review comments, so I added what I could to the telemetry experiment wiki page and to MDN. My experiment

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Christopher Manchester
Hi Armen, Thanks for noticing that, I think you found an issue with how we're submitting data caused by something I landed last week. I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1266183 to track a fix. Chris On Wed, Apr 20, 2016 at 12:01 PM, Armen Zambrano G.

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Armen Zambrano G.
Do we know what happen with the data points of the end of the graph?

Re: Moving XP to ESR?

2016-04-20 Thread Ben Hearsum
This would require a new update channel to support, because it would be a unique line of code that isn't "release" or "esr". It couldn't be implemented as a relbranch either, because we'd need CI for it. You're basically proposing a long lived esr-like branch that we only ship to XP users.

Please use "web-platform-tests --manifest-update" for updating wpt tests

2016-04-20 Thread Jeremy Chen
Hi all, For web-platform-test, it seems some people still update manifest.json manually, instead of running "--manifest-update" mach command. Running "--manifest-update" assures the manifest to be in lexicographic order; however, manually updating manifest may sometimes accidentally add test info

Buggy AVX instruction set support detection

2016-04-20 Thread Nicholas Nethercote
Hi, There is a longstanding NSS crash -- which occurs at a rate of a ~200 per week -- that appears to be caused by buggy detection of AVX instruction set support. If you know about AVX detection and want to help, please take a look at https://bugzilla.mozilla.org/show_bug.cgi?id=1263495. Thank

Re: Dump frame tree in real time

2016-04-20 Thread Jip de Beer
Thanks. I'm aware that it's a privileged API. It seemed Botond was offering a workaround. Anyhow, because of all your help I was able to dump the Frame Tree (not in real time). But I also learned the frame tree doesn't contain all the information I need. Especially the z-order information.

Re: Please keep an eye out for new plugin crashes

2016-04-20 Thread Robert Kaiser
FWIW, no crashes listed in this query after a week of having this on Nightly. KaiRo Benjamin Smedberg schrieb: In today's nightly I landed a patch in bug 1252152 which will crash a plugin-container process more aggressively if a plugin instance is torn down while its code is on the stack.

Re: Intent to Ship: HTML5 and tags

2016-04-20 Thread Ting-Yu Lin
On Wed, Apr 20, 2016 at 2:44 AM, Tantek Çelik wrote: > On Tue, Apr 19, 2016 at 8:41 AM, Ting-Yu Lin wrote: > > To summarize the feedback so far, I'd still like to ship and > > without |summary::marker| because > > > > 1) No other browsers support

Re: Please use "web-platform-tests --manifest-update" for updating wpt tests

2016-04-20 Thread Nathan Froyd
On Wed, Apr 20, 2016 at 8:59 AM, James Graham wrote: > On 20/04/16 13:53, Josh Matthews wrote: >> Servo has a script [1] that runs on the build machine that executes >> --manifest-update and checks whether the contents of MANFEST.json is >> different before and after. We

Re: Please use "web-platform-tests --manifest-update" for updating wpt tests

2016-04-20 Thread Josh Matthews
Servo has a script [1] that runs on the build machine that executes --manifest-update and checks whether the contents of MANFEST.json is different before and after. We could do the same for Gecko and make it turn the job orange on treeherder. Cheers, Josh [1]

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Nicolas B. Pierron
Unrelated, Do we have news for clang blockers on Windows? In particular, I am thinking about the various Sanitizers. On 04/20/2016 11:00 AM, David Burns wrote: We have also started looking at how we can use a global compiler cache on local builds and not just in automation. This will allow

Re: Please use "web-platform-tests --manifest-update" for updating wpt tests

2016-04-20 Thread James Graham
On 20/04/16 13:53, Josh Matthews wrote: Servo has a script [1] that runs on the build machine that executes --manifest-update and checks whether the contents of MANFEST.json is different before and after. We could do the same for Gecko and make it turn the job orange on treeherder. I plan to

Re: Telemetry experiments need to be easier (on Nightly)

2016-04-20 Thread Kartikaya Gupta
On Wed, Apr 20, 2016 at 10:26 AM, Benjamin Smedberg wrote: > The goal of this is for experiments to be fairly lightweight. > > Can you talk about where the problems were? The only signoffs that are > currently required are code review (no surprise there) and >

Re: Moving XP to ESR?

2016-04-20 Thread Henri Sivonen
On Mon, Apr 18, 2016 at 4:46 PM, Thomas Zimmermann wrote: > And XP still runs on ~10% of all desktops. That's an opportunity to > convert some of the users to Firefox. This assumes that 1) users who are still on XP still make active browser choices 2) ESR wouldn't be

Re: Moving XP to ESR?

2016-04-20 Thread Chris H-C
> I wonder how much of the marketshare is likely XP SP2. According to the longitudinal dataset, SP2 is roughly 16% of the Windows XP population, with the rest SP3. So, still some millions of users. :chutten On Wed, Apr 20, 2016 at 9:38 AM, Mike Conley wrote: > The people

Re: Telemetry experiments need to be easier (on Nightly)

2016-04-20 Thread Benjamin Smedberg
The goal of this is for experiments to be fairly lightweight. Can you talk about where the problems were? The only signoffs that are currently required are code review (no surprise there) and acknowledgement from a release driver. For pref flips in particular, we've talked about extending the

Re: Moving XP to ESR?

2016-04-20 Thread Mike Conley
The people on this thread might find chutten's recent blog post interesting: https://chuttenblog.wordpress.com/2016/04/19/firefoxs-windows-xp-users-upgrade-path/ Juicy chunk: "Between 40% and 53% of Firefox users running Windows XP are Stuck" -Mike On 18/04/2016 9:04 AM, Henri Sivonen wrote: >

Re: Please use "web-platform-tests --manifest-update" for updating wpt tests

2016-04-20 Thread James Graham
On 20/04/16 14:13, Nathan Froyd wrote: On Wed, Apr 20, 2016 at 8:59 AM, James Graham wrote: On 20/04/16 13:53, Josh Matthews wrote: Servo has a script [1] that runs on the build machine that executes --manifest-update and checks whether the contents of MANFEST.json is

Re: Spidernode/JXCore

2016-04-20 Thread Ehsan Akhgari
On 2016-04-14 12:08 PM, Steve Fink wrote: > On 04/14/2016 06:21 AM, Philip Chee wrote: >> On 12/04/2016 19:27, Henri Sivonen wrote: >> >>> My understanding is that >>> https://git.merproject.org/mer-core/qtmozembed/ still uses it. As we >>> are figuring out how to be more embeddable (see >>>

Build System Project - Update from the last 2 weeks

2016-04-20 Thread David Burns
Below is a highlight of all work the build peers have done in the last 2 weeks as part of their work to modernise the build infrastructure. Since the last report[1] a large number of improvements have landed in Mozilla Central. We have landed some more build improvements that have brought down

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Gregory Szorc
> On Apr 20, 2016, at 08:16, Nicolas B. Pierron > wrote: > > Unrelated, Do we have news for clang blockers on Windows? In particular, I > am thinking about the various Sanitizers. We haven't really talked about Clang on Windows in our build meeting/plannings.

Re: Dump frame tree in real time

2016-04-20 Thread Botond Ballo
On Wed, Apr 20, 2016 at 5:50 AM, Jip de Beer wrote: > Thanks. I'm aware that it's a privileged API. It seemed Botond was offering a > workaround. In my testing, I used it in the Browser Console (as opposed to the Web Console), which can access privileged APIs. As you

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Jim Blandy
The pattern seems reasonable enough. DXR says we have 2579 "init" or "Init" functions, and 9801 callers of such functions. I used: function:init ext:cpp ext:h callers:init ext:cpp ext:h Do you propose we make an effort to fix up existing code, or just introduce this as the preferred pattern in

Out parameters, References vs. Pointers (was: Proposal: use nsresult& outparams in constructors to represent failure)

2016-04-20 Thread 陳侃如
Nicholas Nethercote writes: > Hi, > > C++ constructors can't be made fallible without using exceptions. As a result, > for many classes we have a constructor and a fallible Init() method which must > be called immediately after construction. > > Except... there is one way

Intent to ship: support "basic shapes" for the CSS 'clip-path' property

2016-04-20 Thread Jonathan Watt
Summary: Currently clip-path clipping requires a reference to an SVG element which can be cumbersome for authors. We intend to allow clip-path to specify basic shapes (circle, ellipse, polygon) inline, for example: style="clip-path: polygon(20% 50px, 200px 25%, 200px 150px, 20% 75%)"

Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Nicholas Nethercote
Hi, C++ constructors can't be made fallible without using exceptions. As a result, for many classes we have a constructor and a fallible Init() method which must be called immediately after construction. Except... there is one way to make constructors fallible: use an |nsresult& aRv| outparam to

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Kris Maglione
On Thu, Apr 21, 2016 at 11:07:21AM +1000, Nicholas Nethercote wrote: Instead, we would do this: nsresult rv; T ts(rv); if (NS_FAILED(rv)) { return rv; } T* th = new T(rv); if (NS_FAILED(rv)) { delete th; return rv; } If we do this, can we please use |nsresult*| rather than

Update on Webcomponents?

2016-04-20 Thread Philipp Kewisch
Hey all, I was experimenting with web components and noticed how there are gaps between what Firefox supports and what Chrome supports. Reading blog posts and such I am aware that this is because consensus has not been reached on the final implementation and I agree it would not be a good idea to

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Nicholas Nethercote
On Thu, Apr 21, 2016 at 11:50 AM, Jim Blandy wrote: > The pattern seems reasonable enough. > > DXR says we have 2579 "init" or "Init" functions, and 9801 callers of such > functions. I used: > > function:init ext:cpp ext:h > callers:init ext:cpp ext:h There are also some

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Kyle Huey
On Wed, Apr 20, 2016 at 9:52 PM, Kris Maglione wrote: > On Thu, Apr 21, 2016 at 02:10:59PM +1000, Nicholas Nethercote wrote: > >> On Thu, Apr 21, 2016 at 1:23 PM, Kris Maglione >> wrote: >> >>> >>> If we do this, can we please use |nsresult*| rather

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Nicholas Nethercote
On Thu, Apr 21, 2016 at 2:13 AM, Bobby Holley wrote: > I believe Ehsan was close to having Clang static analysis running on > Windows. Nathan Froyd has also been involved, and should be included in any discussion there. Nick ___

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Kris Maglione
On Wed, Apr 20, 2016 at 10:02:47PM -0700, Kyle Huey wrote: On Wed, Apr 20, 2016 at 9:52 PM, Kris Maglione There isn't a strict guarantee of non-nullness for reference parameters. This is an extreme example, but technically valid: T th(*(nsresult*)0); IIRC this is

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Nicholas Nethercote
On Thu, Apr 21, 2016 at 3:05 PM, Eric Rescorla wrote: > The general problem that > it doesn't alleviate is that failure to check the return value leaves you > with a reference/pointer to an object in an ill-defined half-constructed > state. At least for heap allocations, I'd much

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Nicholas Nethercote
On Thu, Apr 21, 2016 at 1:23 PM, Kris Maglione wrote: > > If we do this, can we please use |nsresult*| rather than |nsresult&|? I prefer a reference because of the guarantee of non-nullness. But I could live with a pointer if people think it's better. Nick

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Kris Maglione
On Thu, Apr 21, 2016 at 02:10:59PM +1000, Nicholas Nethercote wrote: On Thu, Apr 21, 2016 at 1:23 PM, Kris Maglione wrote: If we do this, can we please use |nsresult*| rather than |nsresult&|? I prefer a reference because of the guarantee of non-nullness. But I could

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Gerald Squelart
On Thursday, April 21, 2016 at 11:15:10 AM UTC+10, Nicholas Nethercote wrote: > Hi, > > C++ constructors can't be made fallible without using exceptions. As a result, > for many classes we have a constructor and a fallible Init() method which must > be called immediately after construction. > >

Re: Proposal: use nsresult& outparams in constructors to represent failure

2016-04-20 Thread Eric Rescorla
I'm sympathetic to the desire to have a single fallible construction function (this is generally how I structure things in C code), but I'm not sure that this is really the right design for it. The general problem that it doesn't alleviate is that failure to check the return value leaves you with

Re: Moving XP to ESR?

2016-04-20 Thread Armen Zambrano G.
Would it make more sense to have a relbranch instead of using ESR? IIRC ESRs are stable for a period but when we uplift we uplift everything new. For this XP relbranch we would only take security patches. It would serve the purpose of keeping our users secure where they're but saving some

Re: Build System Project - Update from the last 2 weeks

2016-04-20 Thread Bobby Holley
I believe Ehsan was close to having Clang static analysis running on Windows. On Wed, Apr 20, 2016 at 8:44 AM, Gregory Szorc wrote: > > > > On Apr 20, 2016, at 08:16, Nicolas B. Pierron < > nicolas.b.pier...@mozilla.com> wrote: > > > > Unrelated, Do we have news for clang