<?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>15721</bug_id>
          
          <creation_ts>2012-01-26 01:00:40 +0000</creation_ts>
          <short_desc>[IndexedDB] Specify when calling transaction() should throw due to being called &quot;too early&quot;</short_desc>
          <delta_ts>2012-03-26 11:43:32 +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="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</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>63137</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2012-01-26 01:00:40 +0000</bug_when>
    <thetext>Specifically Firefox appears to throw before the onsuccess event is fired on the IDBRequest returned from .open. IE however allows it to be called as soon as the oncomplete event is fired on the VERSION_CHANGE transaction.

The IE behavior seems like the better one to me.

Currently transaction() doesn&apos;t appear to throw due to being called &quot;too early&quot; in the spec at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64743</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2012-02-29 18:02:15 +0000</bug_when>
    <thetext>Section 3.1.7 now reads in part as follows (see last sentence for change):

A VERSION_CHANGE transaction can never run concurrently with other transactions. When a VERSION_CHANGE transaction is created, the implementation must wait to start the VERSION_CHANGE transaction until no other transactions against the same database are running. As long as the VERSION_CHANGE transaction is pending, the implementation must wait before starting any other transactions against the same database until the VERSION_CHANGE transaction is finished. However, a new transaction MAY be started as soon as the oncomplete handler is invoked.

Live as of Editor&apos;s draft Feb 29.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66044</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2012-03-26 11:43:32 +0000</bug_when>
    <thetext>Actually, the added language only stated when transactions should run. It didn&apos;t say anything about when scheduling transactions should throw. And the spec still had text in the IDBDatabase.transaction definition that said that we should throw until the &quot;success&quot; event for the open call was fired.

I&apos;ve fixed this to make it more clear that scheduling transactions is always allowed once the versionchange transaction is committed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>