<?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>9786</bug_id>
          
          <creation_ts>2010-05-21 09:54:06 +0000</creation_ts>
          <short_desc>WebIDL bugs in IndexedDB spec</short_desc>
          <delta_ts>2011-05-24 21:46:05 +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="Jeremy Orlow">jorlow</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <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>35789</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-05-21 09:54:06 +0000</bug_when>
    <thetext>---------- Forwarded message ----------
From: Dominique Hazael-Massieux &lt;dom@w3.org&gt;
Date: Fri, May 21, 2010 at 9:57 AM
Subject: IndexedDB WebIDL bugs
To: public-webapps &lt;public-webapps@w3.org&gt;


Hi,

Glancing quickly at the editors draft of
http://dev.w3.org/2006/webapi/WebSimpleDB/ and with help from the WebIDL
checker, I&apos;ve found the following problems:

* none of the interfaces/exceptions are marked with the extended
attribute [NoInterfaceObject]  I doubt they are all meant to be visible
in the global namespace

* The IDBDatabaseException Interface uses the &quot;attribute&quot; keyword for
&quot;code&quot; and &quot;message&quot; - exceptions don&apos;t have attributes, the keyword
should be removed

* IDBDatabaseSync.createObjectStore uses an extended attribute
&quot;[Null=Null]&quot; on its second parameter - I suspect it was meant to be
&quot;[TreatUndefinedAs=Null]&quot;, and if so, the type of the parameter should
be &quot;DOMString?&quot; rather than DOMString

Based on the discussions on the list, and as the beginning of 3.3 seems
to allude to, synchronous operations are only going to be used in
Workers; I suggest to state that clearly, and also to start the first
example of the spec with the async example if that&apos;s the one that is
most likely to be used.

Dom</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48752</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-05-24 21:46:05 +0000</bug_when>
    <thetext>&gt; * none of the interfaces/exceptions are marked with the extended
&gt; attribute [NoInterfaceObject]  I doubt they are all meant to be visible
&gt; in the global namespace

These interfaces are marked with [NoInterfaceObject]:
IDBEnvironment
IDBEnvironmentSync
IDBTransactionCallback


&gt; * The IDBDatabaseException Interface uses the &quot;attribute&quot; keyword for
&gt; &quot;code&quot; and &quot;message&quot; - exceptions don&apos;t have attributes, the keyword
&gt; should be removed

&quot;attribute&quot; keyword removed from both.

&gt; * IDBDatabaseSync.createObjectStore uses an extended attribute
&gt; &quot;[Null=Null]&quot; on its second parameter - I suspect it was meant to be
&gt; &quot;[TreatUndefinedAs=Null]&quot;, and if so, the type of the parameter should
&gt; be &quot;DOMString?&quot; rather than DOMString

Cannot repro. I believe this was removed previously.

&gt; Based on the discussions on the list, and as the beginning of 3.3 seems 
&gt; to allude to, synchronous operations are only going to be used in
&gt; Workers; I suggest to state that clearly, and also to start the first
&gt; example of the spec with the async example if that&apos;s the one that is
&gt; most likely to be used.

Section 3.3 begins:
The synchronous database API methods provide a blocking access pattern to IndexedDB databases. Since they block the calling thread they are only available from workers.

The first sample is asynchronous.

I believe that this covers all of the requests in this bug. I am going to go ahead and resolve it. Let me know if there&apos;s anything else needed for this one.

Thanks,

Eliot</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>