<?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>10794</bug_id>
          
          <creation_ts>2010-09-28 15:30:12 +0000</creation_ts>
          <short_desc>[IndexedDB] Clarify createObjectStore/removeObjectStore&apos;s tie to the database setVersion was called on</short_desc>
          <delta_ts>2011-06-03 06:05:27 +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>PC</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="Jeremy Orlow">jorlow</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>jorlow</cc>
    
    <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>39742</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-09-28 15:30:12 +0000</bug_when>
    <thetext>createObjectStore/removeObjectStore are currently on the IDBDatabase object and can only be called while in the middle of a setVersion transaction.  I don&apos;t think the spec makes it very clear that they can only be called on the database object where setVersion was called from, however.  Some additional text might be helpful.

This was brought up in this thread: http://www.mail-archive.com/public-webapps@w3.org/msg10431.html (with the subject &quot;[IndexedDB] setVersion with multiple IDBDatabase objects&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47661</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-04-25 18:45:36 +0000</bug_when>
    <thetext>Assigning to me to edit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49131</commentid>
    <comment_count>2</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-06-03 06:05:27 +0000</bug_when>
    <thetext>Added the following sentences:

]]
The createObjectStore method is tied to the instance of the database that setVersion was called on and can make changes to that database instance only. 

The deleteObjectStore method is tied to the instance of the database that setVersion was called on and can make changes to that database instance only. 
[[

to the following methods:

IDBDatabase.createObjectStore
IDBDatabase.deleteObjectStore
IDBDatabaseSync.createObjectStore
IDBDatabaseSync.deleteObjectStore</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>