How to use 'require' in XPCOM javascript components?

2014-11-18 Thread Yonggang Luo
I was trying to use require('sdk/') to import some javascript libraries in XPCOM javascript components. But I can not do that. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: http-schemed URLs and HTTP/2 over unauthenticated TLS

2014-11-18 Thread Chris Peterson
On 11/17/14 1:48 AM, Henri Sivonen wrote: As for cat and mouse, I'd prefer putting our cat-and-mouse energies into patching up https PKI instead of introducing a new cat-and-mouse situation to pay attention to. (Despite being able to walk and chew gum, our end isn't 100% immune to opportunity cos

Re: How to use 'require' in XPCOM javascript components?

2014-11-18 Thread 陳侃如
Yonggang Luo writes: > I was trying to use require('sdk/') to import > some javascript libraries in > XPCOM javascript components. > But I can not do that. You need to import "require" first const require = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}).devtools.require; then

PSA: JavaScript, const, and you

2014-11-18 Thread Eric Rahm
Just a heads up, a few of us have run into problems with extensions breaking in nightly. The problem is probably not restricted to extensions. The scoping rules for const in JavaScript have changed to conform w/ the ES6 spec [1]. My understanding is that a const variable is now restricted to t

Re: http-schemed URLs and HTTP/2 over unauthenticated TLS

2014-11-18 Thread Robert O'Callahan
On Wed, Nov 19, 2014 at 1:20 PM, Chris Peterson wrote: > On 11/17/14 1:48 AM, Henri Sivonen wrote: > >> As for cat and mouse, I'd prefer putting our cat-and-mouse energies >> into patching up https PKI instead of introducing a new cat-and-mouse >> situation to pay attention to. (Despite being abl

Re: http-schemed URLs and HTTP/2 over unauthenticated TLS

2014-11-18 Thread Henri Sivonen
> On Wed, Nov 19, 2014 at 1:20 PM, Chris Peterson > wrote: >> Given Mozilla's announcements around Let's Encrypt, are there still use >> cases for HTTP+OE? >> >> https://letsencrypt.org/2014/11/18/announcing-lets-encrypt.html In particular: https://wiki.mozilla.org/Platform/2014-10-14#Necko_.28d

Re: Intent to ship: Web Speech API - Speech Recognition with Pocketsphinx

2014-11-18 Thread Andre Natal
Chris, I was discussing with sphinx leaders and we can build models from audiobooks as well. This approach saves a lot of time and enhances the quality since the narrative is well accurate and clear. We are currently defining a way to create hindi and brazilian portuguese models. Thanks Andre