Bug 1504634 - Added tooltip to refresh button of storage inspector section. r=miker
authorRainier G <rainier.f.go@gmail.com>
Tue, 19 Feb 2019 16:21:31 +0000
changeset 459913 9b783af3efddadd9e9206430e9a1e1d0c621e46e
parent 459912 56e28681fc9bb2995e2e53d0c0030451c03d4bd6
child 459914 93a4c9ff0cb515dc5ee5963675cdea4199c0a491
push id35580
push userdvarga@mozilla.com
push dateWed, 20 Feb 2019 04:03:23 +0000
treeherdermozilla-central@62a8571d3b92 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmiker
bugs1504634
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1504634 - Added tooltip to refresh button of storage inspector section. r=miker Differential Revision: https://phabricator.services.mozilla.com/D20353
devtools/client/locales/en-US/storage.properties
devtools/client/storage/ui.js
--- a/devtools/client/locales/en-US/storage.properties
+++ b/devtools/client/locales/en-US/storage.properties
@@ -87,16 +87,20 @@ storage.parsedValue.label=Parsed Value
 # LOCALIZATION NOTE (storage.popupMenu.deleteLabel):
 # Label of popup menu action to delete storage item.
 storage.popupMenu.deleteLabel=Delete “%S”
 
 # LOCALIZATION NOTE (storage.popupMenu.addItemLabel):
 # Label of popup menu action to add an item.
 storage.popupMenu.addItemLabel=Add Item
 
+# LOCALIZATION NOTE (storage.popupMenu.refreshItemLabel):
+# Label of popup menu action to refresh an item.
+storage.popupMenu.refreshItemLabel=Refresh Items
+
 # LOCALIZATION NOTE (storage.popupMenu.deleteAllFromLabel):
 # Label of popup menu action to delete all storage items.
 storage.popupMenu.deleteAllFromLabel=Delete All From “%S”
 
 # LOCALIZATION NOTE (storage.idb.deleteBlocked):
 # Warning notification when IndexedDB database could not be deleted immediately.
 storage.idb.deleteBlocked=Database “%S” will be deleted after all connections are closed.
 
--- a/devtools/client/storage/ui.js
+++ b/devtools/client/storage/ui.js
@@ -186,16 +186,18 @@ class StorageUI {
     this.onRemoveItem = this.onRemoveItem.bind(this);
     this.onRemoveAllFrom = this.onRemoveAllFrom.bind(this);
     this.onRemoveAll = this.onRemoveAll.bind(this);
     this.onRemoveAllSessionCookies = this.onRemoveAllSessionCookies.bind(this);
     this.onRemoveTreeItem = this.onRemoveTreeItem.bind(this);
 
     this._refreshButton = this._panelDoc.getElementById("refresh-button");
     this._refreshButton.addEventListener("command", this.onRefreshTable);
+    this._refreshButton.setAttribute("tooltiptext",
+    L10N.getFormatStr("storage.popupMenu.refreshItemLabel"));
 
     this._addButton = this._panelDoc.getElementById("add-button");
     this._addButton.addEventListener("command", this.onAddItem);
 
     this._tablePopupAddItem = this._panelDoc.getElementById(
       "storage-table-popup-add");
     this._tablePopupAddItem.addEventListener("command", this.onAddItem);