<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Modern IDB: Backend should send events when DBs / ObjectStores are created/deleted"
   href="https://bugs.webkit.org/show_bug.cgi?id=152933#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Modern IDB: Backend should send events when DBs / ObjectStores are created/deleted"
   href="https://bugs.webkit.org/show_bug.cgi?id=152933">bug 152933</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>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?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>