<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11385</bug_id>
          
          <creation_ts>2010-11-23 03:32:21 +0000</creation_ts>
          <short_desc>Bring the sync APIs back in sync with the async ones</short_desc>
          <delta_ts>2011-02-16 02:39:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pablo Castro">pablo.castro</reporter>
          <assigned_to name="Pablo Castro">pablo.castro</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42712</commentid>
    <comment_count>0</comment_count>
    <who name="Pablo Castro">pablo.castro</who>
    <bug_when>2010-11-23 03:32:21 +0000</bug_when>
    <thetext>We&apos;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&apos;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 &quot;mode&quot; 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 &quot;mode&quot; 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&apos;t covered)
11. most (all?) sync samples need updating to reflect the changes to the sync API

Spec changes to follow soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43478</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-12-20 15:46:55 +0000</bug_when>
    <thetext>Changes have been pushed up to the store. Reassigning to Pablo for verification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45642</commentid>
    <comment_count>2</comment_count>
    <who name="Pablo Castro">pablo.castro</who>
    <bug_when>2011-02-16 02:39:41 +0000</bug_when>
    <thetext>Just checked what&apos;s checked in now and it looks good. Closing this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>