Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js

Issue 2714913002: DevTools: Fixes to Storage panel inconsistencies (Closed)
Patch Set: fix merge conflicts Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
index 0675cb28ca7280f6c37cc0a26355262405ae67d0..a3038747f7919eedf588bf38d76bf6a3314485ce 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
@@ -67,7 +67,7 @@ Resources.DOMStorageItemsView = class extends Resources.StorageItemsView {
}
/**
- * @param {!Common.Event} event
+ * @param {!Common.Event=} event
eostroukhov 2017/02/24 18:13:46 I think you can remove the event from the paramete
phulce 2017/02/28 18:55:53 Do you think it's better to have no documentation
eostroukhov 2017/02/28 20:22:51 This function is not meant to be called with an ar
phulce 2017/02/28 21:23:58 Except it will be when invoked through event liste
eostroukhov 2017/02/28 21:29:05 I don't think it matters from the API point of vie
*/
_domStorageItemsCleared(event) {
if (!this.isShowing() || !this._dataGrid)
@@ -207,6 +207,7 @@ Resources.DOMStorageItemsView = class extends Resources.StorageItemsView {
*/
deleteAllItems() {
this._domStorage.clear();
+ this._domStorageItemsCleared();
eostroukhov 2017/02/24 18:13:47 This should be called in response to event after t
phulce 2017/02/28 18:55:53 AFAICT the target simply doesn't call the methods
}
_editingCallback(editingNode, columnIdentifier, oldText, newText) {

Powered by Google App Engine
This is Rietveld 408576698