<?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>9790</bug_id>
          
          <creation_ts>2010-05-21 16:28:05 +0000</creation_ts>
          <short_desc>Request is not a good suffix for all the async interfaces in IndexedDB</short_desc>
          <delta_ts>2010-11-01 04:55: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>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="Andrei Popescu">andreip</assigned_to>
          <cc>andreip</cc>
    
    <cc>jonas</cc>
    
    <cc>jorlow</cc>
    
    <cc>mike</cc>
    
    <cc>nikunj.mehta</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>35799</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-05-21 16:28:05 +0000</bug_when>
    <thetext>Andrei Popescu proposed a couple naming changes to the interfaces within IndedexDB deep within the &quot;[IndexDB] Proposal for async API changes&quot; thread [1].

One of the proposals was to change the &quot;Request&quot; suffix that&apos;s used for all the asynchronous interfaces (but not necessarily the IDBRequest object, since that&apos;s a bit different).

The voices are Andrei, Shawn, Jonas, and Jeremy in that order:

&gt; &gt;&gt;&gt; - The &quot;Request&quot; suffix is now used to denote the asynchronous versions
&gt; &gt;&gt;&gt; of the API interfaces. These interfaces aren&apos;t actually Requests of
&gt; &gt;&gt;&gt; any kind, so I would like to suggest changing this suffix. In fact, if
&gt; &gt;&gt;&gt; the primary usage of this API is via its async version, we could even
&gt; &gt;&gt;&gt; drop this suffix altogether and just add &quot;Sync&quot; to the synchronous
&gt; &gt;&gt;&gt; versions?
&gt; &gt;&gt;
&gt; &gt;&gt; I agree that Request seems confusing and seems to be contrary to what other
&gt; &gt;&gt; specs use.  We should try to follow what other specs do here.
&gt; &gt;
&gt; &gt; Agreed on both accounts. There unfortunately isn&apos;t much in the way of
&gt; &gt; precedence here. There are three other specs to look at here, which
&gt; &gt; specify API for both workers and main thread.
&gt; &gt;
&gt; &gt; * Web Workers spec
&gt; &gt; http://www.whatwg.org/specs/web-workers/current-work/ This spec
&gt; &gt; doesn&apos;t actually use different interfaces for workers and main thread.
&gt; &gt; * File API http://dev.w3.org/2006/webapi/FileAPI/ Specifies FileReader
&gt; &gt; and FileReaderSync. The two interfaces are separate and doesn&apos;t
&gt; &gt; inherit from a common base
&gt; &gt; * WebSQLDatabase http://dev.w3.org/html5/webdatabase/ Specifies
&gt; &gt; separate interfaces, like Database and DatabaseSync. The two
&gt; &gt; interfaces are separate and doesn&apos;t inherit from a common base.
&gt; &gt;
&gt; &gt; I think we should follow the same convention as File API and
&gt; &gt; WebSQLDatabase. There really isn&apos;t anything to be gained by having a
&gt; &gt; common base interface, it just makes the spec harder to read as
&gt; &gt; functionality is distributed between the base interface and the
&gt; &gt; sync/async interface.
&gt; &gt;
&gt; &gt; I additionally like the naming convention. The async interfaces is
&gt; &gt; probably the interface that people will use first. Additionally that
&gt; &gt; interface is available both to workers and to the main thread. So it
&gt; &gt; makes sense to give the async interface the simpler name.
&gt;
&gt; Agreed on all counts.  I would add that, if we did decide to keep
&gt; base interfaces, we could always suffix them with Base (which I
&gt; think makes it more clear they&apos;re base interfaces)...but it sounds
&gt; like that might not be necessary.

[1] http://lists.w3.org/Archives/Public/public-webapps/2010AprJun/0801.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36333</commentid>
    <comment_count>1</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2010-06-22 13:56:55 +0000</bug_when>
    <thetext>Fixed in http://dvcs.w3.org/hg/IndexedDB/rev/378e74fd2c7a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36431</commentid>
    <comment_count>2</comment_count>
    <who name="Nikunj Mehta">nikunj.mehta</who>
    <bug_when>2010-06-26 23:59:54 +0000</bug_when>
    <thetext>Because all the abstract interfaces were removed, it was necessary to correct NoInterfaceObject modifiers on IDBObjectStore, IDBCursor, IDBObjectStoreSync, and IDBCursorSync</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41734</commentid>
    <comment_count>3</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-10-25 18:09:00 +0000</bug_when>
    <thetext>Nikunj: You reopened this, what is left here to do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41911</commentid>
    <comment_count>4</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-11-01 04:55:32 +0000</bug_when>
    <thetext>I&apos;m closing this for now as &quot;Request&quot; is indeed no longer used as a suffix.

Nikunj, if you think there&apos;s still something missing here, please do reopen this bug or file a new one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>