Re: [whatwg] Web Workers feedback

2010-03-30 Thread Jonas Sicking
On Mon, 1 Mar 2010, ben turner wrote: I'm implementing the structured clone algorithm and this part bothers me a little bit:   - If input is a host object (e.g. a DOM node)       Return the null value. Seems like this has the potential to confuse web programmers somewhat. If I were to

Re: [whatwg] WebSocket bufferedAmount includes overhead or not

2010-03-30 Thread Jonas Sicking
On Wed, Mar 24, 2010 at 2:33 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 23 Mar 2010, Anne van Kesteren wrote: We (Opera) would prefer this too. I.e. to not impose details of the protocol on the API. If we're exposing nothing from the protocol, does that mean we shouldn't be exposing that

Re: [whatwg] Web Workers feedback

2010-03-30 Thread Ian Hickson
On Mon, 29 Mar 2010, Jonas Sicking wrote: We could throw an exception, but that would make migrating from this not being supported to this being supported later a lot harder (you'd have to catch exceptions and then remove the nodes, rather than just doing null checks in the worker). I

Re: [whatwg] More questions about the DnD API

2010-03-30 Thread Stef Epardaud
On Mon, Mar 29, 2010 at 02:04:22PM -0700, Daniel Cheng wrote: I'm still trying to use the DnD for a real-world use, and keep hitting problems. This is the HTML 5 draft at 7.9.4 Drag-and-drop processing model: From this point until the end of the drag-and-drop operation,

Re: [whatwg] Web Workers feedback

2010-03-30 Thread Jonas Sicking
On Tue, Mar 30, 2010 at 12:20 AM, Ian Hickson i...@hixie.ch wrote: On Mon, 29 Mar 2010, Jonas Sicking wrote: We could throw an exception, but that would make migrating from this not being supported to this being supported later a lot harder (you'd have to catch exceptions and then remove

Re: [whatwg] More questions about the DnD API

2010-03-30 Thread Daniel Cheng
On Tue, Mar 30, 2010 at 12:38 AM, Stef Epardaud s...@epardaud.fr wrote: On Mon, Mar 29, 2010 at 02:04:22PM -0700, Daniel Cheng wrote: I'm still trying to use the DnD for a real-world use, and keep hitting problems. This is the HTML 5 draft at 7.9.4 Drag-and-drop processing

Re: [whatwg] More questions about the DnD API

2010-03-30 Thread Stef Epardaud
On Tue, Mar 30, 2010 at 01:31:15AM -0700, Daniel Cheng wrote: But then it's up to the developer to detect that the keys weren't pressed before (implement keydown events themselves), which is less practical. If you're copying the behavior of file managers, isn't it simply a

Re: [whatwg] WebSocket bufferedAmount includes overhead or not

2010-03-30 Thread Niklas Beischer
On Tue, 30 Mar 2010 09:19:33 +0300, Jonas Sicking jo...@sicking.cc wrote: On Wed, Mar 24, 2010 at 2:33 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 23 Mar 2010, Anne van Kesteren wrote: We (Opera) would prefer this too. I.e. to not impose details of the protocol on the API. If we're

Re: [whatwg] More questions about the DnD API

2010-03-30 Thread Stef Epardaud
On Tue, Mar 30, 2010 at 02:33:07AM -0700, Daniel Cheng wrote: But what was the rationale for preventing key events while doing DnD? I'm not 100% sure, but I'm assume it's so that the process of dragging and dropping doesn't trigger unrelated mouse / keyboard listeners. Unrelated

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Eoin Kilfeather
Forgive my ignorance, I Am Not A Lawyer, but what are the consequences of a submarine patent on Theora and/or Vorbis? If a browser supports it in good faith, and subsequently a troll successfully introduces a patent challenge, would the consequence not be that the codec would simply be dropped

Re: [whatwg] WebSocket bufferedAmount includes overhead or not

2010-03-30 Thread Jonas Sicking
On Tue, Mar 30, 2010 at 1:51 AM, Niklas Beischer n...@opera.com wrote: On Tue, 30 Mar 2010 09:19:33 +0300, Jonas Sicking jo...@sicking.cc wrote: On Wed, Mar 24, 2010 at 2:33 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 23 Mar 2010, Anne van Kesteren wrote: We (Opera) would prefer this too.

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Rob Crowther
Eoin Kilfeather wrote: Forgive my ignorance, I Am Not A Lawyer, Neither am I.. In fact a court would surely allow a reasonable time for transition. If it's got as far as a court then it probably already cost you a significant chunk of money. Rob

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Tab Atkins Jr.
On Tue, Mar 30, 2010 at 6:58 AM, Eoin Kilfeather ekilfeat...@dmc.dit.ie wrote: Forgive my ignorance, I Am Not A Lawyer, but what are the consequences of a submarine patent on Theora and/or Vorbis? If a browser supports it in good faith, and subsequently a troll successfully introduces a patent

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Perry Smith
Isn't the concept of a submarine patent also possible against a patented algorithm? Perry

[whatwg] Proposal for secure key-value data stores

2010-03-30 Thread Nicholas Zakas
Hi everyone, In attempting to use localStorage at work, we ran into some major security issues. Primary among those are the guidelines we have in place regarding personalized user data. The short story is that personalized data cannot be stored on disk unless it's encrypted using a

Re: [whatwg] Proposal for secure key-value data stores

2010-03-30 Thread Jeremy Orlow
Most companies that have such policies enforce them with software that encrypts your home directory (or entire hard drive). Since most (all?) browsers store such data within a users home directory, that should be sufficient for the specific case you're mentioning. (Well, except for expiration.)

Re: [whatwg] More questions about the DnD API

2010-03-30 Thread Daniel Cheng
On Tue, Mar 30, 2010 at 2:54 AM, Stef Epardaud s...@epardaud.fr wrote: On Tue, Mar 30, 2010 at 02:33:07AM -0700, Daniel Cheng wrote: But what was the rationale for preventing key events while doing DnD? I'm not 100% sure, but I'm assume it's so that the process of dragging and

Re: [whatwg] Proposal for secure key-value data stores

2010-03-30 Thread Jonas Sicking
On Tue, Mar 30, 2010 at 12:19 PM, Jeremy Orlow jor...@chromium.org wrote: Lastly, we really should not be creating new APIs that are synchronous that involve multiple top level windows (like LocalStorage and this API you're proposing).  It makes it very difficult to achieve isolation and

Re: [whatwg] whatwg Digest, Vol 72, Issue 63

2010-03-30 Thread Evan Ireland
://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachmen ts/20100330/161836e3/attachment.html -- ___ whatwg mailing list whatwg@lists.whatwg.org http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org End of whatwg Digest, Vol

Re: [whatwg] Proposal for secure key-value data stores

2010-03-30 Thread Dirk Pranke
Nicholas is almost certainly discussing the case where the service provider requires any data stored on a customer's computer to be encrypted, not the provider's own computers. (e.g., this could be a Yahoo! policy that data stored on Yahoo! users' computers must be encrypted). Hence they cannot

Re: [whatwg] location.reload() on document.open()ed documents

2010-03-30 Thread Maciej Stachowiak
On Mar 30, 2010, at 7:38 AM, Henri Sivonen wrote: The spec says about location.reload(): Navigate the browsing context to the document's current address with replacement enabled. The source browsing context must be the browsing context being navigated. It appears that this is what WebKit

Re: [whatwg] Proposal for secure key-value data stores

2010-03-30 Thread Nicholas Zakas
Yes, that's precisely what I'm talking about. It seems to me that this will end up being a pretty common pattern (encrypting/decrypting data stored locally). The idea behind letting the key to be defined by the developer is to allow any usage that developers deem appropriate for the situation.

Re: [whatwg] What will not work when we do not have server ?

2010-03-30 Thread Tab Atkins Jr.
On Mon, Mar 29, 2010 at 9:50 AM, narendra sisodiya narendra.sisod...@gmail.com wrote: Thanks a lot, what about server-sent, websocket ? At the same time I am thinking for using webshare command too. alias webshare='python -c import SimpleHTTPServer;SimpleHTTPServer.test()' this command will

[whatwg] Bug in form association algorithm

2010-03-30 Thread Jonas Sicking
The spec says When a form-associated element has a form attribute and the ID of any of the form elements in the Document changes, then the user agent must reset the form owner of that form-associated element. However it does not seem to reset the form owner if a form element with an ID is added

Re: [whatwg] Web Workers feedback

2010-03-30 Thread Jonas Sicking
On Tue, Mar 30, 2010 at 3:09 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 30 Mar 2010, Jonas Sicking wrote: I agree that people are less likely to depend on exceptions. The problem is feature detection so that you can use the new feature (sending DOM nodes) in new clients without failing

Re: [whatwg] Simple Links

2010-03-30 Thread Ashley Sheridan
On Tue, 2010-03-30 at 23:44 +0200, Christoph Päper wrote: If you think about various syntax variants of wiki systems they’ve got one thing in common that makes them preferable to direct HTML input: easy links! (Local ones at least, whatever that means.) The best known example is probably

[whatwg] Workers: What can be done in a worker after call to close()?

2010-03-30 Thread Dmitry Titov
Hi! Trying to fix some bugs for Workers, I've got some questions about close() method on WorkerGlobalScopehttp://www.whatwg.org/specs/web-workers/current-work/#workerglobalscope . In particular, the spec seems to imply that after calling close() inside the worker, the JS does not get terminated

Re: [whatwg] Proposal for secure key-value data stores

2010-03-30 Thread Nicholas Zakas
I certainly can't argue against a focus on JS crypto. :) What I'd like to do is eliminate what I believe will be a repeated pattern for developers in the future. It would be really nice if, in addition to having access to crypto functions, there was an area where I could stick data that would

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Boris Zbarsky
On 3/30/10 9:58 AM, Eoin Kilfeather wrote: If a browser supports it in good faith, and subsequently a troll successfully introduces a patent challenge, would the consequence not be that the codec would simply be dropped with the next maintenance release of the browser? IANAL, but as I

Re: [whatwg] location.reload() on document.open()ed documents

2010-03-30 Thread Boris Zbarsky
On 3/30/10 10:38 AM, Henri Sivonen wrote: This makes me wonder: If the two engines with the largest market share both take steps to enable document.open()ed docs to be reloaded, is the behavior needed for optimal Web compatibility? At one point, yes. I don't recall many bug reports about this

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Boris Zbarsky
On 3/30/10 11:43 AM, Perry Smith wrote: Isn't the concept of a submarine patent also possible against a patented algorithm? Yes, but since Apple already ships other H.264 decoders it already has exposure to whatever patents could come up against it. So from their point of view, the marginal

Re: [whatwg] Workers: What can be done in a worker after call to close()?

2010-03-30 Thread Drew Wilson
I'll note that the spec gives the UA an significant amount of latitude about its behavior after close() is called: User agents may invoke the kill a worker #kill-a-worker processing model on a worker at any time, e.g. in response to user requests, in response to CPU quota management, or when a

Re: [whatwg] Video Tag Proposal

2010-03-30 Thread Richard Watts
Boris Zbarsky wrote: On 3/30/10 11:43 AM, Perry Smith wrote: Isn't the concept of a submarine patent also possible against a patented algorithm? Yes, but since Apple already ships other H.264 decoders it already has exposure to whatever patents could come up against it. So from their point

Re: [whatwg] Workers: What can be done in a worker after call to close()?

2010-03-30 Thread Dmitry Titov
On Tue, Mar 30, 2010 at 5:58 PM, Drew Wilson atwil...@google.com wrote: I'll note that the spec gives the UA an significant amount of latitude about its behavior after close() is called: User agents may invoke the kill a worker#127b1baa1cefaebf_kill-a-worker processing model on a worker at

Re: [whatwg] WebSocket bufferedAmount includes overhead or not

2010-03-30 Thread Boris Zbarsky
On 3/30/10 10:22 AM, Jonas Sicking wrote: Making it implementation dependent is likely to lead to website incompatibilities. Such as: ws = new WebSocket(...); ws.onopen = function() { ws.send(someString); if (ws.bufferedAmount X) { doStuff(); Can bufferedAmount not change due to