Re: [whatwg] HTMLCanvasElement toBlob Promise

2015-04-27 Thread Garrett Smith
On 3/18/15, acmesquares . wrote: > Admittedly a wrapper function is trivial, mostly for API consistency, and > does simply move the callback elsewhere. > There is a lot of room for improvement for toBlob. > However that's not unprecedented as Navigator.mediaDevices.getUserMedia() > was just a pr

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread duanyao
在 2015年04月28日 02:42, Jonas Sicking 写道: On Mon, Apr 27, 2015 at 7:37 PM, duanyao wrote: In iframe, srcdoc attribute seems as secure (insecure) as data: URL in src, so should it be removed from the spec? The difference there, and in the other examples that you mention, is that you know that you

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread Jonas Sicking
On Mon, Apr 27, 2015 at 7:37 PM, duanyao wrote: > In iframe, srcdoc attribute seems as secure (insecure) as data: URL in src, > so should it be removed from the spec? The difference there, and in the other examples that you mention, is that you know that you are loading content in your own domain

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread duanyao
在 2015年04月27日 22:58, Jonas Sicking 写道: On Mon, Apr 27, 2015 at 2:20 PM, Tab Atkins Jr. wrote: On Mon, Apr 27, 2015 at 7:00 AM, Anne van Kesteren wrote: Currently Chrome supports data URLs inside EventSource whereas in Firefox EventSource is restricted to http/https URLs: https://bugzilla.

Re: [whatwg] Proposal: Allow disabling of default scroll restoration behavior

2015-04-27 Thread Jonas Sicking
Jumping in at the end here. As I've said before, I like the general idea of giving pages more control over scroll restoration, but I don't think we should tie this to pushState()/replaceState()/onscroll. My proposal is instead that we add an API like history.restoreScroll = boolean; This proper

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread Tab Atkins Jr.
On Mon, Apr 27, 2015 at 3:58 PM, Jonas Sicking wrote: > On Mon, Apr 27, 2015 at 2:20 PM, Tab Atkins Jr. wrote: >> On Mon, Apr 27, 2015 at 7:00 AM, Anne van Kesteren wrote: >>> Currently Chrome supports data URLs inside EventSource whereas in >>> Firefox EventSource is restricted to http/https UR

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread Jonas Sicking
On Mon, Apr 27, 2015 at 2:20 PM, Tab Atkins Jr. wrote: > On Mon, Apr 27, 2015 at 7:00 AM, Anne van Kesteren wrote: >> Currently Chrome supports data URLs inside EventSource whereas in >> Firefox EventSource is restricted to http/https URLs: >> >> https://bugzilla.mozilla.org/show_bug.cgi?id=115

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread Tab Atkins Jr.
On Mon, Apr 27, 2015 at 7:00 AM, Anne van Kesteren wrote: > Currently Chrome supports data URLs inside EventSource whereas in > Firefox EventSource is restricted to http/https URLs: > > https://bugzilla.mozilla.org/show_bug.cgi?id=1156137 > > What's the convergence we want here? It's rather fru

Re: [whatwg] EventSource and data URLs

2015-04-27 Thread Boris Zbarsky
On 4/27/15 10:00 AM, Anne van Kesteren wrote: Currently Chrome supports data URLs inside EventSource whereas in Firefox EventSource is restricted to http/https URLs: https://bugzilla.mozilla.org/show_bug.cgi?id=1156137 What's the convergence we want here? Note that per current spec, EventS

[whatwg] EventSource and data URLs

2015-04-27 Thread Anne van Kesteren
Currently Chrome supports data URLs inside EventSource whereas in Firefox EventSource is restricted to http/https URLs: https://bugzilla.mozilla.org/show_bug.cgi?id=1156137 What's the convergence we want here? -- https://annevankesteren.nl/