| Index: third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
|
| index 6b2d25e6b90ae567d4a9d0fc06bc222cf231818b..a319f0c407a819597cecd0c90d8eab459a10bd97 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
|
| @@ -1086,7 +1086,9 @@ Resources.IndexedDBTreeElement = class extends Resources.StorageCategoryTreeElem
|
|
|
| refreshIndexedDB() {
|
| for (var indexedDBModel of SDK.targetManager.models(Resources.IndexedDBModel))
|
| - indexedDBModel.refreshDatabaseNames();
|
| + indexedDBModel.refreshDatabaseNames(); // Adds IDBDatabaseTreeElements.
|
| + for (var i = 0; i < this._idbDatabaseTreeElements.length; ++i)
|
| + this._idbDatabaseTreeElements[i]._refreshIndexedDB();
|
| }
|
|
|
| /**
|
| @@ -1197,7 +1199,7 @@ Resources.IDBDatabaseTreeElement = class extends Resources.BaseStorageTreeElemen
|
| }
|
|
|
| _refreshIndexedDB() {
|
| - this._model.refreshDatabaseNames();
|
| + this._model.refreshDatabase(this._databaseId);
|
| }
|
|
|
| /**
|
| @@ -1238,7 +1240,7 @@ Resources.IDBDatabaseTreeElement = class extends Resources.BaseStorageTreeElemen
|
| */
|
| onselect(selectedByUser) {
|
| super.onselect(selectedByUser);
|
| - if (!this._view)
|
| + if (!this._view && this._database)
|
| this._view = new Resources.IDBDatabaseView(this._model, this._database);
|
|
|
| this.showView(this._view);
|
|
|