[whatwg] [Fetch spec] Link to CORS FAQ wiki

2014-08-14 Thread Takeshi Yoshino
Anne, The commit on the W3C CORS spec in May 2012 [1] has moved various useful texts explaining decisions made and reasons to the CORS FAQ wiki page [2]. The Fetch spec [3] inherited the CORS concepts/algorithms but seems didn't inherit stuff in the FAQ. Could you please try to guide readers of t

[whatwg] exposing dependencies + weights (aka, priorities) to web developers

2014-08-14 Thread Ilya Grigorik
(followup / continuation of [1]) Trying to hash out some ideas for how to connect Fetch and the new transport capabilities of HTTP/2. Would love to hear everyone's thoughts: https://docs.google.com/document/d/1jSpWc6jkrUoYtGWcxev9Blkkv9RhoO1XtqinBvXqhgY/edit ig [1] http://lists.whatwg.org/htdig

Re: [whatwg] Notifications: the ability to specify notifications behavior

2014-08-14 Thread Michael Henretty
On Thu, Aug 14, 2014 at 4:37 PM, Robert Bindar wrote: > > On 08/13/2014 04:36 PM, Jonas Sicking wrote: > > > >> * vibration - vibrate the device > >> * silent - "true" means do not play a sound when firing the > >> notification(the sound > >> is enabled by default in fi

Re: [whatwg] Notifications: the ability to specify notifications behavior

2014-08-14 Thread Robert Bindar
On 08/13/2014 04:36 PM, Jonas Sicking wrote: > On Wed, Aug 13, 2014 at 2:12 PM, Robert Bindar wrote: >> Concerning web notifications, it would be very helpful for content and web >> apps >> to have a way of specifying the behavior their notifications should have. >> For instance, a chat clien

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Biju
Additionally in the browser UI, if user can get a way to find which tabs/pages are locking the system/display it will be great help.

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Thu, Aug 14, 2014 at 9:55 AM, Jesper Kristensen wrote: > Hi > > Would it make sense to tie the system lock to a notification? > > For example: > > new Notification("Processing...", {tag: "abc", progressBar: 0.8, wakeLock: > "system"}); > > There are many myths and rumors about how to conserve b

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Thu, Aug 14, 2014 at 6:33 AM, Nils Dagsson Moskopp wrote: > So what would happen if I want my laptop to go to into low-power mode by > closing the lid? Would I have to close a lot of risky web pages first? We need indeed something to prevent abuse here. Especially for CPU locks given that they

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Thu, Aug 14, 2014 at 4:44 AM, Biju wrote: > So what happens when we have following function call. > How do we release the runaway lock request. > Another case is a page made lock and user navigate away from the page. > Do the browser keep the lock for ever ? > > function xyz(){ > > do_some

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jesper Kristensen
Hi Would it make sense to tie the system lock to a notification? For example: new Notification("Processing...", {tag: "abc", progressBar: 0.8, wakeLock: "system"}); There are many myths and rumors about how to conserve battery on mobile devices. A small improvement could be to require apps

Re: [whatwg] Fetch Objects and scripts/stylesheets

2014-08-14 Thread Nils Dagsson Moskopp
Ben Maurer writes: > Another concrete example with tags: sometimes an abusive user will > use a site like Facebook as a CDN -- they'll upload a picture and hotlink > it from elsewhere. We could insert a time-stamped authentication token as a > custom header. Today we sometimes do this via the qu

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Nils Dagsson Moskopp
Jonas Sicking writes: > On Thu, Jul 17, 2014 at 7:17 AM, Marcos Caceres wrote: >> On Thursday, July 17, 2014 at 6:12 AM, Mounir Lamouri wrote: >> >>> On Thu, 17 Jul 2014, at 01:56, Marcos Caceres wrote: >>> > >>> > I don't have a strong opinion. My concern was mostly about developers >>> > havin

Re: [whatwg] How to determine content-type of file: protocol

2014-08-14 Thread Nils Dagsson Moskopp
duanyao writes: > On 07/28/2014 22:08, Gordon P. Hemsley wrote: >> On 07/28/2014 08:01 AM, duanyao wrote: >>> On 07/28/2014 06:34, Gordon P. Hemsley wrote: Sorry for the delay in responding. Your message fell through the cracks in my e-mail filters. On 07/17/2014 08:26 AM, dua

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Biju
On 14 August 2014 03:07, Jonas Sicking wrote: > On Wed, Aug 13, 2014 at 9:46 PM, Biju wrote: >> >> On 13 August 2014 21:00, Jonas Sicking wrote: >>> >>> An alternative design would be something like >>> >>> x = new WakeLock("display"); >>> x.request(); >>> x.release(); >>> >>> Extra calls of eit

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Wed, Aug 13, 2014 at 9:46 PM, Biju wrote: > > On 13 August 2014 21:00, Jonas Sicking wrote: >> >> An alternative design would be something like >> >> x = new WakeLock("display"); >> x.request(); >> x.release(); >> >> Extra calls of either request() or release() are ignored, but pages >> can cr