<?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>152933</bug_id>
          
          <creation_ts>2016-01-08 15:46:36 -0800</creation_ts>
          <short_desc>Web Inspector: Modern IDB: Backend should send events when DBs are created/deleted/updated</short_desc>
          <delta_ts>2026-01-12 09:04:39 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>149117</dependson>
          <blocked>165889</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Joseph Pecoraro">joepeck</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1154043</commentid>
    <comment_count>0</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-01-08 15:46:36 -0800</bug_when>
    <thetext>* SUMMARY
Modern IDB: Backend should send events when DBs / ObjectStores are created/deleted

This serves multiple purposes:
  (1) under modern IDB there doesn&apos;t exist a way to get a list of all the IDB names (we could create one for Inspector eventually)
  (2) currently when a page opens an IDB, it should show up in the tools but doesn&apos;t. An event would solve that.

This primarily solves (2) which is a better user experience (dynamically updating available IDB databases/stores). (1) Should be solved eventually but can be done separately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154044</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-01-08 15:47:42 -0800</bug_when>
    <thetext>&lt;rdar://problem/24115467&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154045</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-01-08 15:54:04 -0800</bug_when>
    <thetext>A basic set of events could include:

    &quot;events&quot;: [
        {
            &quot;name&quot;: &quot;databaseOpened&quot;,
            &quot;parameters&quot;: [
                { &quot;name&quot;: &quot;databaseWithObjectStores&quot;, &quot;$ref&quot;: &quot;DatabaseWithObjectStores&quot;, &quot;description&quot;: &quot;Database with an array of object stores.&quot; }
            ]
        },
        {
            &quot;name&quot;: &quot;databaseDeleted&quot;,
            &quot;parameters&quot;: [
                { &quot;name&quot;: &quot;securityOrigin&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Security origin.&quot; },
                { &quot;name&quot;: &quot;databaseName&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Database name.&quot; }
            ]
        },
        {
            &quot;name&quot;: &quot;objectStoreCreated&quot;,
            &quot;parameters&quot;: [
                { &quot;name&quot;: &quot;securityOrigin&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Security origin.&quot; },
                { &quot;name&quot;: &quot;databaseName&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Database name.&quot; }            
                { &quot;name&quot;: &quot;name&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Object store name.&quot; },
            ]
        },
        {
            &quot;name&quot;: &quot;objectStoreDeleted&quot;,
            &quot;parameters&quot;: [
                { &quot;name&quot;: &quot;securityOrigin&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Security origin.&quot; },
                { &quot;name&quot;: &quot;databaseName&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Database name.&quot; }            
                { &quot;name&quot;: &quot;name&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Object store name.&quot; },
            ]
        },
    ]

But it might also be worthwhile now to introduce a &quot;databaseId&quot; for securityOrigin/databaseName pairs.

Other possible improvements:
- Send update event when a Database changes version?
- Send update event when an ObjectStore is modified?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154062</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-01-08 16:45:08 -0800</bug_when>
    <thetext>Since object stores can only be created/deleted/modified in upgrades that simplifies things.

We would not need objectStoreCreated/Delete events, just a databaseOpened (which could also double for updated) and databaseDeleted, at that point the object stores should be solid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168163</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2016-02-25 11:46:44 -0800</bug_when>
    <thetext>Even if we did this, we would still want a way for the inspector to get a list of all the open IndexedDBs when the inspector opens... So I think it would still make sense for WebCore provide a way to do that in some way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1187517</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-04-26 13:43:35 -0700</bug_when>
    <thetext>Reversing the blocking relationship here - We don&apos;t need this to consider Modern IDB to be complete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>