Re: [IndexedDB] Closing on bug 9903 (collations)

2011-05-03 Thread Keean Schupke
The more I think about it, the more I want a user-specified comparison function. Efficiency should not be an issue here - the engines should tweek the JIT compiler to fix any efficiency issues. Just let the user pass a closure (remember functions are first-class in JavaScript so this is not a

Re: [widgets] Widget Updates tests?

2011-05-03 Thread Rich Tibbett
Scott Wilson wrote: Just one more thing... Test ta-processing2-14, Tests that update-info element's src attribute need to be valid, else it is ignored. The widget is not updated or replaced. However, the value to fail with is fail.wgt which ought to be interpreted as a relative URL, in

Re: paste events and HTML support - interest in exposing a DOM tree?

2011-05-03 Thread Hallvord R. M. Steen
On Tue, 03 May 2011 07:10:10 +0900, João Eiras joao.ei...@gmail.com wrote: event.clipboardData.getDocumentFragment() which would return a parsed and when applicable sanitized view of any markup the implementation supports from the clipboard. This is already covered by doing

Does WebApps want to do work in Model-driven Views area?

2011-05-03 Thread Arthur Barstow
Hi All, Pardon the interruption here to digress a bit to look at Rafael's proposal from the process perspective ... [Charter] defines WebApps' scope and explicit deliverables. Depending on how the proposal is viewed, (perhaps) at least part of it could be rationalized by being related to

Re: Does WebApps want to do work in Model-driven Views area?

2011-05-03 Thread Olli Pettay
On 05/03/2011 02:38 PM, Arthur Barstow wrote: Hi All, Pardon the interruption here to digress a bit to look at Rafael's proposal from the process perspective ... [Charter] defines WebApps' scope and explicit deliverables. Depending on how the proposal is viewed, (perhaps) at least part of it

Re: [IndexedDB] Closing on bug 9903 (collations)

2011-05-03 Thread Aryeh Gregor
On Tue, May 3, 2011 at 3:19 AM, Keean Schupke ke...@fry-it.com wrote: The more I think about it, the more I want a user-specified comparison function. Efficiency should not be an issue here - the engines should tweek the JIT compiler to fix any efficiency issues. Just let the user pass a

Re: [IndexedDB] Closing on bug 9903 (collations)

2011-05-03 Thread Keean Schupke
Why does it need to be persisted? I would prefer the database to be stateless. Obviously all users of the database need to use the same function. I would recommend modular programming - create a .js script you can include in all pages that provides 'collated' versions of the method calls by adding

Re: paste events and HTML support - interest in exposing a DOM tree?

2011-05-03 Thread Paul Libbrecht
Le 3 mai 2011 à 12:20, Hallvord R. M. Steen a écrit : Regarding simplifying the pasted html to remove stuff that could be malicious, consider a rogue app that injects a script in the clipboard and expects the user to hit paste on his bank site. Well, I've never seen a bank site with a

copy events and content from server

2011-05-03 Thread Paul Libbrecht
Hello list, As noted in the thread about security started by Halvord: In many of the scenarios I have working for, the content to be put on the clipboard would come from a luxury knowledge structure on the server, one that has access to some semantic source and can infer useful

[IndexedDB] Bug#10601 - Need some way to create IDB events?

2011-05-03 Thread Israel Hilerio
Is this what the working group had in mind when opening this bug [1], the ability to add a initIDBVersionChangeEvent method to the interface below? interface IDBVersionChangeEvent: Event { readonly attribute DOMString version; -- void initIDBVersionChangeEvent(in DOMString

[IndexedDB] Bug#11401 -We should disallow .transaction() from within setVersion transactions

2011-05-03 Thread Israel Hilerio
We expect async operations to be queue up and executed in the order in which they were created. Thus, the request to create a second transaction inside the onsuccess handler of a setVersion request using a .transaction() method would fail as long as we were inside a VERSION_CHANGE transaction.

Re: copy events and content from server

2011-05-03 Thread Ryosuke Niwa
On Tue, May 3, 2011 at 10:26 AM, Paul Libbrecht p...@hoplahup.net wrote: As noted in the thread about security started by Halvord: In many of the scenarios I have working for, the content to be put on the clipboard would come from a luxury knowledge structure on the server, one that has

Re: copy events and content from server

2011-05-03 Thread Paul Libbrecht
Ryosuke, Le 3 mai 2011 à 21:15, Ryosuke Niwa a écrit : Would it be thinkable to *lock* the copy event until either a timeout occurs or an unlock is called? No. We definitely don't want to lock a local system resource for some random web service that may potentially fail to release the

Re: [IndexedDB] Closing on bug 9903 (collations)

2011-05-03 Thread Aryeh Gregor
On Tue, May 3, 2011 at 10:56 AM, Keean Schupke ke...@fry-it.com wrote: Why does it need to be persisted? I would prefer the database to be stateless. Obviously all users of the database need to use the same function. And if they don't use exactly the same function, maybe due to a transient

Re: [IndexedDB] Bug#10601 - Need some way to create IDB events?

2011-05-03 Thread Jonas Sicking
On Tue, May 3, 2011 at 11:51 AM, Israel Hilerio isra...@microsoft.com wrote: Is this what the working group had in mind when opening this bug [1], the ability to add a initIDBVersionChangeEvent method to the interface below? interface IDBVersionChangeEvent: Event {           readonly

[File API: FileSystem] Path restrictions and case-sensitivity

2011-05-03 Thread Eric U
I'd like to bring back up the discussion that went on at [1] and [2]. In particular, I'd like to propose a minimal set of restrictions for file names and paths, punt on the issue of what happens in later layers of the API, and discuss case-sensitivity rules. For the sandboxed filesystem, I

RE: [IndexedDB] Bug#10601 - Need some way to create IDB events?

2011-05-03 Thread Israel Hilerio
On Tue, May 3, 2011 at 4:45 PM, Jonas Sicking wrote: On Tue, May 3, 2011 at 11:51 AM, Israel Hilerio isra...@microsoft.com wrote: Is this what the working group had in mind when opening this bug [1], the ability to add a initIDBVersionChangeEvent method to the interface below? interface

[IndexedDB] deleteObjectStore method and updates to IDBDatabase.objectStoreNames on the client

2011-05-03 Thread Israel Hilerio
In looking at createObjectStore on IDBDatabase, it seems that we would have to update the IDBDatabase.objectStoreNames attribute on the client side after returning the IDBObjectStore. Otherwise, it would be difficult to detect that an objectStore with the same name already exists and throw a