WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 40424
Implement more of IndexedDB's Indexes and ObjectStores
https://bugs.webkit.org/show_bug.cgi?id=40424
Summary
Implement more of IndexedDB's Indexes and ObjectStores
Jeremy Orlow
Reported
2010-06-10 06:56:48 PDT
Implement more of IndexedDB's Indexes and ObjectStores
Attachments
Patch
(39.59 KB, patch)
2010-06-10 07:07 PDT
,
Jeremy Orlow
steveblock
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jeremy Orlow
Comment 1
2010-06-10 07:07:46 PDT
Created
attachment 58374
[details]
Patch
Andrei Popescu
Comment 2
2010-06-10 08:00:14 PDT
Looks good, one comment below:
> PassRefPtr<IDBObjectStoreRequest> IDBDatabaseRequest::objectStore(const String& name, unsigned short mode) > { > RefPtr<IDBObjectStore> objectStore = m_database->objectStore(name, mode); > ASSERT(objectStore); // FIXME: If this is null, we should raise a NOT_FOUND_ERR. > return IDBObjectStoreRequest::create(objectStore.release()); > }
The spec says about this: // Simple shorthand for transaction([name], mode).objectStore(name); // Returns object immediately. So simply returning an object is incorrect, we should also call transaction(). Add a FIXME? Furthermore, why not raise NOT_FOUND_ERR if an object store with that name doesn't exist rather than the ASSERT + FIXME? It's just a one-liner, right? Or am I missing something?
Jeremy Orlow
Comment 3
2010-06-10 08:34:56 PDT
(In reply to
comment #2
)
> Looks good, one comment below: > > > PassRefPtr<IDBObjectStoreRequest> IDBDatabaseRequest::objectStore(const String& name, unsigned short mode) > > { > > RefPtr<IDBObjectStore> objectStore = m_database->objectStore(name, mode); > > ASSERT(objectStore); // FIXME: If this is null, we should raise a NOT_FOUND_ERR. > > return IDBObjectStoreRequest::create(objectStore.release()); > > } > > The spec says about this: > > // Simple shorthand for transaction([name], mode).objectStore(name); > // Returns object immediately. > > So simply returning an object is incorrect, we should also call transaction(). Add a FIXME?
k.
> Furthermore, why not raise NOT_FOUND_ERR if an object store with that name doesn't exist rather than the ASSERT + FIXME? It's just a one-liner, right? Or am I missing something?
I need to add a bunch of code to support IDBDatabaseExceptions. Best left to its own patch, I think.
Jeremy Orlow
Comment 4
2010-06-11 06:28:13 PDT
Ping. Given that Andrei has done an unofficial review of the meat (he's working with me on implementing it), it should be a really easy r+
Jeremy Orlow
Comment 5
2010-06-11 07:03:03 PDT
Committed
r61015
: <
http://trac.webkit.org/changeset/61015
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug