Re: Please aim to add informative messages to your exceptions

2019-09-14 Thread Boris Zbarsky
On 9/14/19 4:38 PM, David Teller wrote: Does this have any impact on SpiderMonkey error handling? It does not; this is purely about errors thrown through bindings or other ErrorResult consumers in Gecko. In SpiderMonkey, errors are typically thrown via the (JS_)ReportErrorNumber* APIs or vi

Re: Please aim to add informative messages to your exceptions

2019-09-14 Thread Kip Gilbert
This is excellent! I’ll add some messages for the WebXR API. Cheers. - Kip > On Sep 15, 2019, at 5:38 AM, David Teller wrote: > > Very good news! > > Does this have any impact on SpiderMonkey error handling? > > Cheers, > David > >> On 14/09/2019 06:47, Boris Zbarsky wrote: >> Hello, >>

Re: Please aim to add informative messages to your exceptions

2019-09-14 Thread David Teller
Very good news! Does this have any impact on SpiderMonkey error handling? Cheers, David On 14/09/2019 06:47, Boris Zbarsky wrote: > Hello, > > ErrorResult has two kinds of exception-throwing APIs on it: the older > ones that don't allow specifying a custom message string, and newer ones > that

Equivalent for XMLHttpRequest.overrideMimeType() in the world of nsIHttpChannel

2019-09-14 Thread john.bieling--- via dev-platform
I am working on a wrapper for nsIHttpChannel with the interface of MLHttpRequest. Mainly to be able to use the codeBbasePrincipal (or ContextPrincipal as it is called now I think) with XHR requests, but without authors having to rewrite their code. This is for Thunderbird Add-Ons, which still c