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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>82776</bug_id>
          
          <creation_ts>2012-03-30 13:43:40 -0700</creation_ts>
          <short_desc>[DumpRenderTree] IndexedDB: Each page group/worker has a distinct IDBFactoryBackend</short_desc>
          <delta_ts>2013-04-11 16:18:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          <blocked>107194</blocked>
    
    <blocked>82678</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Bell">jsbell</reporter>
          <assigned_to name="Michael Pruett">michael</assigned_to>
          <cc>abarth</cc>
    
    <cc>charles.wei</cc>
    
    <cc>dgrogan</cc>
    
    <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>592461</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2012-03-30 13:43:40 -0700</bug_when>
    <thetext>The PageGroupIndexedDatabase and WorkerContextIndexedDatabase classes contain IDBFactoryBackendInterface members which are initialized lazily. The IndexedDB implementation assumes there is a single IDBFactoryBackendImpl instance for the entire browser, since it controls access to the backing store, maintains open database connections, and schedules transactions.

The result is that a page and worker, or two workers, that attempt to open connections to the same database end up talking to completely distinct database instances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>592462</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2012-03-30 13:43:59 -0700</bug_when>
    <thetext>This does not affect the Chromium port, only DumpRenderTree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832974</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2013-02-14 04:57:18 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; This does not affect the Chromium port, only DumpRenderTree.

Why? What about other ports?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>833162</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2013-02-14 09:43:01 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; This does not affect the Chromium port, only DumpRenderTree.
&gt; 
&gt; Why?

In full-blown Chromium, the back-end objects run in a different process; all front-end objects talk through proxies which implement IPC to the same back-end. This is true in Chromium&apos;s chrome browser and content_shell.

The Chromium port of test_shell (used for DumpRenderTree) is single-process, and runs into the issue in the bug Description.

&gt; What about other ports?

Other ports did not implement IndexedDB at the time I wrote that. I don&apos;t know the state of the other ports at the moment, but they would likely run into this issue unless they implement a similar mechanism for separating front- and back-ends.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>