RESOLVED FIXED 83221
IndexedDB: Support string.length in keyPaths
https://bugs.webkit.org/show_bug.cgi?id=83221
Summary IndexedDB: Support string.length in keyPaths
Joshua Bell
Reported 2012-04-04 14:47:28 PDT
IndexedDB: Support string.length in keyPaths
Attachments
Patch (8.63 KB, patch)
2012-04-04 14:49 PDT, Joshua Bell
no flags
Patch for landing (8.69 KB, patch)
2012-04-05 16:20 PDT, Joshua Bell
no flags
Joshua Bell
Comment 1 2012-04-04 14:49:08 PDT
Joshua Bell
Comment 2 2012-04-04 14:53:25 PDT
The spec sayeth: Key path values can only be accessed from properties explicitly copied by the structured clone algorithm, as well as the following properties: Blob.size Blob.type File.name File.lastModifiedDate Array.length String.length Array.length "just works", File/Blob are not yet supported. String.length needs a special case.
Kentaro Hara
Comment 3 2012-04-04 18:57:22 PDT
Comment on attachment 135688 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=135688&action=review > Source/WebCore/ChangeLog:6 > + Special case in the IDB spec - keyPaths can reference the |length| property Would you please add the link to the spec?
Joshua Bell
Comment 4 2012-04-05 09:09:21 PDT
(In reply to comment #3) > Would you please add the link to the spec? http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#key-path-construct
Kentaro Hara
Comment 5 2012-04-05 10:16:03 PDT
(In reply to comment #4) > (In reply to comment #3) > > Would you please add the link to the spec? > > http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#key-path-construct Thanks, I meant, it would be better to include the link in ChangeLog.
Joshua Bell
Comment 6 2012-04-05 10:17:15 PDT
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > Would you please add the link to the spec? > > > > http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#key-path-construct > > Thanks, I meant, it would be better to include the link in ChangeLog. :) Will do.
Joshua Bell
Comment 7 2012-04-05 16:20:22 PDT
Created attachment 135930 [details] Patch for landing
WebKit Review Bot
Comment 8 2012-04-05 16:54:24 PDT
Comment on attachment 135930 [details] Patch for landing Clearing flags on attachment: 135930 Committed r113395: <http://trac.webkit.org/changeset/113395>
WebKit Review Bot
Comment 9 2012-04-05 16:54:29 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.