<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@webkit.org" title="Joseph Pecoraro <joepeck@webkit.org>"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
<pre>A basic set of events could include:
"events": [
{
"name": "databaseOpened",
"parameters": [
{ "name": "databaseWithObjectStores", "$ref": "DatabaseWithObjectStores", "description": "Database with an array of object stores." }
]
},
{
"name": "databaseDeleted",
"parameters": [
{ "name": "securityOrigin", "type": "string", "description": "Security origin." },
{ "name": "databaseName", "type": "string", "description": "Database name." }
]
},
{
"name": "objectStoreCreated",
"parameters": [
{ "name": "securityOrigin", "type": "string", "description": "Security origin." },
{ "name": "databaseName", "type": "string", "description": "Database name." }
{ "name": "name", "type": "string", "description": "Object store name." },
]
},
{
"name": "objectStoreDeleted",
"parameters": [
{ "name": "securityOrigin", "type": "string", "description": "Security origin." },
{ "name": "databaseName", "type": "string", "description": "Database name." }
{ "name": "name", "type": "string", "description": "Object store name." },
]
},
]
But it might also be worthwhile now to introduce a "databaseId" 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>