Re: Intent to implement: Cookie SameSite=lax by default and SameSite=none only if secure

2019-10-31 Thread jmuir1
On Thursday, 23 May 2019 18:34:14 UTC+10, Andrea Marchesini wrote: > Link to the projchdfuao uo p;a ciwgbyis ygidq aurotuoeaip gup vygiupgayei > whejioyopuas9rqyw9e-fyes09uya90explicit "SameSite" attribute as >"SameSite=Lax". That is, the "Set-Cookie" value "key=value" will >prod

Intent to ship: Add image/webp to default Accept header

2019-10-31 Thread Junior Hsu
Summary: I'd like to increase the visibility for this controversial intention. Currently Firefox send image/webp for image content, but it fails for navigation case. By adding image/webp to default Accept:, developers can tell the webp support by Accept header for navigation and opening URL by othe

Intent to unship: HTTP Refresh header support when the content is handled as a download

2019-10-31 Thread Matt Woodrow
Hi, In Bug 1589270 I intend to remove support for handling the HTTP Refresh header while handling the content as a download. This has been broken in our code with e10s enabled, since the initial e10s conversion. Neither Chrome nor Safar

Re: Intent to ship: Promise.allSettled

2019-10-31 Thread Jan-Ivar Bruaroey
On 10/31/19 4:26 AM, Paolo Amadini wrote: On 10/30/2019 10:19 PM, Jan-Ivar Bruaroey wrote: Promise.all(promises.map(p => p.catch(e => e))) https://stackoverflow.com/questions/31424561/wait-until-all-promises-complete-even-if-some-rejected/36115549#36115549 By the way, this "catch(e => e

Re: Consider avoiding allSettled in tests (was: Re: Intent to ship: Promise.allSettled)

2019-10-31 Thread Jason Orendorff
On Thu, Oct 31, 2019 at 4:10 AM Paolo Amadini wrote: >// INCORRECT >//await Promise.allSettled([promise1, promise2]); > > The last example silently loses any rejection state. > Ignoring the awaited value here is like using `catch {}` to squelch all exceptions, or ignoring the return valu

Re: Intent to ship: Promise.allSettled

2019-10-31 Thread Paolo Amadini
On 10/30/2019 10:19 PM, Jan-Ivar Bruaroey wrote:     Promise.all(promises.map(p => p.catch(e => e))) https://stackoverflow.com/questions/31424561/wait-until-all-promises-complete-even-if-some-rejected/36115549#36115549 By the way, this "catch(e => e)" call may make sense as an example in the

Consider avoiding allSettled in tests (was: Re: Intent to ship: Promise.allSettled)

2019-10-31 Thread Paolo Amadini
On 10/30/2019 10:19 PM, Jan-Ivar Bruaroey wrote: This always seemed trivial to me to do with:     Promise.all(promises.map(p => p.catch(e => e))) As Boris pointed out, this does not have proper exception handling. If exceptions should be ignored, it may be good to call "console.error". In case