This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11385 - Bring the sync APIs back in sync with the async ones
Summary: Bring the sync APIs back in sync with the async ones
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Pablo Castro
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-23 03:32 UTC by Pablo Castro
Modified: 2011-02-16 02:39 UTC (History)
2 users (show)

See Also:


Attachments

Description Pablo Castro 2010-11-23 03:32:21 UTC
We've been maintaining the async API as the reference one and there are a few things that the sync API is now out of sync on. This bug is to track bringing them back together (and hopefully we'll keep them in sync going foward).

Differences as of 11/22/10:
1. Remove the IDBDatabaseSync.description attribute
2. IDBDatabaseSync.close method needs to be added
3. IDBDatabaseSync.deleteObjectStore: need to add the exception for the case of NOT_ALLOWED_ERR (outside of setVersion)
4. Remove the IDBDatabaseSync.openObjectStore method
5. IDBDatabaseSync.transaction is missing the "mode" parameter
6. Remove IDBObjectStoreSync.mode and the realted READ_ONLY and READ_WRITE constants
7. IDBIndexSync.get: allow range objects as keys where we return the first element of the range
8. IDBTransactionSync needs the READ_WRITE, READ_ONLY and VERSION_CHANGE constants, and the "mode" attribute
9. IDBTransactionSync.static needs to be removed
10. most sync methods need to get their errors table updated from the async counterparts (in particular TRANSACTION_INACTIVE_ERR and many DATA_ERR cases aren't covered)
11. most (all?) sync samples need updating to reflect the changes to the sync API

Spec changes to follow soon.
Comment 1 Eliot Graff 2010-12-20 15:46:55 UTC
Changes have been pushed up to the store. Reassigning to Pablo for verification.
Comment 2 Pablo Castro 2011-02-16 02:39:41 UTC
Just checked what's checked in now and it looks good. Closing this.