Re: Handling execution dependencies

2013-01-14 Thread Robert O'Callahan
On Tue, Jan 15, 2013 at 2:26 PM, Gregory Szorc wrote: > If I were writing Gecko from scratch today and took the world view that > Gecko is an operating system, I would certainly be tempted to design > XPCOM/Gecko services as Upstart/SMF-like services. > If I were, I would identify all the XPCOM

Re: Handling execution dependencies

2013-01-14 Thread Gregory Szorc
On 1/12/13 7:46 AM, David Rajchenbach-Teller wrote: As Firefox moves each day more to an asynchronous execution model, we keep facing issues related to dependencies between tasks. Here are a few examples: 1. component A can only be initialized one or more other components have reached some state;

Re: Detecting bad static casts

2013-01-14 Thread Joshua Cranmer
On 1/14/2013 1:05 PM, Jesse Ruderman wrote: We have a lot of pointer casts in our tree [1][2][3] and some security holes involve these casts going wrong [4][5]. Should we make debug builds check casts to (vtableful?) pointer types? This could be done by adding and calling an "assert_cast" functi

Re: Handling execution dependencies

2013-01-14 Thread Ehsan Akhgari
Can you please add code snippets on that page to show how this API can be used to solve some example problems? It would really help if those problems are the sort of things that actually come up in the Mozilla code base. I have a really hard time inferring how the API is supposed to be used b

Re: region of zeroes in Gecko address space

2013-01-14 Thread Justin Dolske
On 1/14/13 8:43 AM, Benoit Jacob wrote: Right and I didn't understand how it could tell when it has to subsequently actually allocate memory when a write is made into these pages. Got my answer offline: it's a page fault. Yup. The classic example in OS land is optimizing fork() via copy-on-wr

xulrunner 17.0.1.

2013-01-14 Thread pmiller . xul
Hi all, I am upgrading a xulrunner 1.9.2 based application towards 17.0.1. One thing I noticed, that for some reason, embedded PDFs via the Adobe Plugin isn't running anymore. XUL code: http://www.w3.org/1999/xhtml"; > I put the Adobe PDF

Interaction between JS code in chrome and the content (web page)

2013-01-14 Thread tomasare
Hi, First of all, I apologize if this is not the appropriate group and please direct me to the correct one. I'm trying to understand how to do interaction between JS code in the chrome and content/web page itself. More specifically, I've created a simple browser with tabs as a standalone XUL ap

Action required from Linux package maintainers building with GCC 4.4 and earlier: JS engine miscompilation caused by unsafe compiler flags

2013-01-14 Thread Justin Lebar
Due to bug 821502 [1], if you build Firefox 18 for Linux/Android with GCC 4.4 (and perhaps earlier), GCC will miscompile the JS engine. These miscompilations are known to cause test failures [2] and crashes [3]. If you don't build on Linux/Android, don't care about building Firefox 18 (the current

Re: Detecting bad static casts

2013-01-14 Thread Joshua Cranmer
On 1/14/2013 1:05 PM, Jesse Ruderman wrote: We have a lot of pointer casts in our tree [1][2][3] and some security holes involve these casts going wrong [4][5]. Should we make debug builds check casts to (vtableful?) pointer types? This could be done by adding and calling an "assert_cast" functi

Re: Detecting bad static casts

2013-01-14 Thread Benjamin Smedberg
On 1/14/2013 2:05 PM, Jesse Ruderman wrote: Should we make debug builds check casts to (vtableful?) pointer types? This could be done by adding and calling an "assert_cast" function, or by adding a new "sanitizer" mode [6] to clang. In order to keep our custom goop to a minimum, I don't think t

Detecting bad static casts

2013-01-14 Thread Jesse Ruderman
We have a lot of pointer casts in our tree [1][2][3] and some security holes involve these casts going wrong [4][5]. Should we make debug builds check casts to (vtableful?) pointer types? This could be done by adding and calling an "assert_cast" function, or by adding a new "sanitizer" mode [6] to

partial third-party cookie blocking

2013-01-14 Thread Sid Stamm
I just sent a message to dev-privacy to discuss partial third-party cookie blocking. It's called "partial third-party cookie blocking". summary: we're proposing to ship a partial-block on third party cookies to block new third party cookies (but not those you already have set). If you have th

Re: region of zeroes in Gecko address space

2013-01-14 Thread Benoit Jacob
2013/1/14 Mike Hommey > On Mon, Jan 14, 2013 at 11:28:19AM -0500, Benoit Jacob wrote: > > 2013/1/14 Mike Hommey > > > > > On Mon, Jan 14, 2013 at 11:09:07AM -0500, Benoit Jacob wrote: > > > > 2013/1/14 Mike Hommey > > > > > > > > > On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wro

Re: region of zeroes in Gecko address space

2013-01-14 Thread Mike Hommey
On Mon, Jan 14, 2013 at 11:28:19AM -0500, Benoit Jacob wrote: > 2013/1/14 Mike Hommey > > > On Mon, Jan 14, 2013 at 11:09:07AM -0500, Benoit Jacob wrote: > > > 2013/1/14 Mike Hommey > > > > > > > On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wrote: > > > > > I need a big read-only

Re: region of zeroes in Gecko address space

2013-01-14 Thread Benoit Jacob
2013/1/14 Mike Hommey > On Mon, Jan 14, 2013 at 11:09:07AM -0500, Benoit Jacob wrote: > > 2013/1/14 Mike Hommey > > > > > On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wrote: > > > > I need a big read-only buffer full of zeroes. On Linux I could mmap > > > > /dev/zero read-only, an

Re: region of zeroes in Gecko address space

2013-01-14 Thread Mike Hommey
On Mon, Jan 14, 2013 at 11:09:07AM -0500, Benoit Jacob wrote: > 2013/1/14 Mike Hommey > > > On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wrote: > > > I need a big read-only buffer full of zeroes. On Linux I could mmap > > > /dev/zero read-only, and something similar on Windows/Mac

Re: region of zeroes in Gecko address space

2013-01-14 Thread Benoit Jacob
2013/1/14 Mike Hommey > On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wrote: > > I need a big read-only buffer full of zeroes. On Linux I could mmap > > /dev/zero read-only, and something similar on Windows/Mac I'm sure, but > do > > we already have code for that, or better yet some

Re: region of zeroes in Gecko address space

2013-01-14 Thread Mike Hommey
On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wrote: > I need a big read-only buffer full of zeroes. On Linux I could mmap > /dev/zero read-only, and something similar on Windows/Mac I'm sure, but do > we already have code for that, or better yet something like that already > mapped i

Re: Notifications of new private downloads

2013-01-14 Thread Neil
Josh Matthews wrote: On 01/13/2013 07:20 PM, Neil wrote: Neil wrote: nsIDownloadManagerUI has had an aUsePrivateUI parameter added to its show() method. However, it gets passed in an id, which makes no sense in per-window private browsing i.e. if aUsePrivateUI is set then you can't actuall

Re: region of zeroes in Gecko address space

2013-01-14 Thread Gabriele Svelto
Of course, I imagine your goal is not to pull in pages in RAM for these zero pages. I suspect mmap may do what you want on Linux and Mac, so long as you don't write to the pages. Yes, all zeroed pages are mapped to the same physical page under Linux. They get a new physical mapping only when

Re: Notifications of new private downloads

2013-01-14 Thread Josh Matthews
On 01/13/2013 07:20 PM, Neil wrote: Neil wrote: nsIDownloadManagerUI has had an aUsePrivateUI parameter added to its show() method. However, it gets passed in an id, which makes no sense in per-window private browsing i.e. if aUsePrivateUI is set then you can't actually find out which download