Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Wed, Aug 13, 2014 at 9:46 PM, Biju bijumaill...@gmail.com wrote: On 13 August 2014 21:00, Jonas Sicking jo...@sicking.cc 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,

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Biju
On 14 August 2014 03:07, Jonas Sicking jo...@sicking.cc wrote: On Wed, Aug 13, 2014 at 9:46 PM, Biju bijumaill...@gmail.com wrote: On 13 August 2014 21:00, Jonas Sicking jo...@sicking.cc wrote: An alternative design would be something like x = new WakeLock(display); x.request();

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

2014-08-14 Thread Nils Dagsson Moskopp
duanyao duan...@ustc.edu 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, duanyao

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Nils Dagsson Moskopp
Jonas Sicking jo...@sicking.cc writes: On Thu, Jul 17, 2014 at 7:17 AM, Marcos Caceres w...@marcosc.com 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

Re: [whatwg] Fetch Objects and scripts/stylesheets

2014-08-14 Thread Nils Dagsson Moskopp
Ben Maurer ben.mau...@gmail.com writes: Another concrete example with img 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

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 to

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Thu, Aug 14, 2014 at 4:44 AM, Biju bijumaill...@gmail.com 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

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Thu, Aug 14, 2014 at 6:33 AM, Nils Dagsson Moskopp n...@dieweltistgarnichtso.net 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

Re: [whatwg] Proposal: Wake Lock API

2014-08-14 Thread Jonas Sicking
On Thu, Aug 14, 2014 at 9:55 AM, Jesper Kristensen m...@jesperkristensen.dk 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

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] 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 robertbin...@gmail.com 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

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 robertbin...@gmail.com 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

[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]