Intent to ship: CSP Violation DOM Events

2017-11-16 Thread Chung-Sheng Fu
Content Security Policy suggests Security Policy Violation DOM Events [1]. In case any of the directives within a policy are violated, such a SecurityPolicyViolationEvent is generated and sent out to a reporting endpoint associated with the policy. We are working on implementing those violation

Please switch from MOZ_DEBUG to MOZ_NO_OSX_EVENT_TAPS to avoid event taps on Mac

2017-11-16 Thread Boris Zbarsky
I just landed a change [1] to use the MOZ_NO_OSX_EVENT_TAPS environment variable instead of the MOZ_DEBUG environment variable to disable event taps on Mac. If you aren't setting MOZ_DEBUG in your environment, you don't need to do anything. If you _are_ setting it, to work around bug

Re: mozilla-central now compiles with C++14

2017-11-16 Thread gsquelart
On Friday, November 17, 2017 at 6:05:38 AM UTC+11, Jeff Walden wrote: > On 11/16/2017 08:35 AM, Ben Kelly wrote: > > I would like to use initialized lambda capture as I think it will allow > > move-only objects to be used in lambdas like this: > > > > UniquePtr uniqueThing = MakeUnique(); > >

Re: mozilla-central now compiles with C++14

2017-11-16 Thread Jim Blandy
Oh, this is great!! I was going to have to use horrible kludges to get around the lack of generic lambdas. On Wed, Nov 15, 2017 at 8:44 PM, Nathan Froyd wrote: > C++14 constructs are now usable in mozilla-central and related trees. > According to: > >

Re: mozilla-central now compiles with C++14

2017-11-16 Thread Jeff Walden
On 11/16/2017 08:35 AM, Ben Kelly wrote: > I would like to use initialized lambda capture as I think it will allow > move-only objects to be used in lambdas like this: > > UniquePtr uniqueThing = MakeUnique(); > nsCOMPtr r = NS_NewRunnableFunction([uniqueThing = > Move(uniqueThing)] () { >

Re: mozilla-central now compiles with C++14

2017-11-16 Thread Ben Kelly
On Wed, Nov 15, 2017 at 8:44 PM, Nathan Froyd wrote: > * initialized lambda captures > I would like to use initialized lambda capture as I think it will allow move-only objects to be used in lambdas like this: UniquePtr uniqueThing = MakeUnique(); nsCOMPtr r =

Re: Still-supported cases of out-of-tree XPCOM code?

2017-11-16 Thread Jonathan Kingston
> Code search wouldn't have helped *this* case, but considering how useful https://dxr.mozilla.org/addons/ has been previously, the notion of there still existing out-of-tree XPCOM callers but them being dark matter code search-wise worries me. This was failing for quite some time, we kept ahead

Re: mozilla-central now compiles with C++14

2017-11-16 Thread Jet Villegas
Nice! Binary literals sound cool for bit masks. I’d hate to have to read/write them for anything else :-) On Wed, Nov 15, 2017 at 20:44 Nathan Froyd wrote: > C++14 constructs are now usable in mozilla-central and related trees. > According to: > >

GC header file regoranisation

2017-11-16 Thread Jon Coppeard
In bug 1417123 I'm regorganising the GC header files a little. In summary: - if you need to use JS::Rooted, JS::Handle and the like please include js/RootingAPI.h. - if you need to configure the GC or trigger a collection please include js/GCAPI.h. The idea is to move everything required