summaryrefslogtreecommitdiffstats
path: root/devtools/client/storage
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 14:59:24 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 14:59:24 +0100
commit71fd51a863171d9f462d1311749de717361406a6 (patch)
treeb071df1f04808b437eb3d8dac6017b42ab7b2950 /devtools/client/storage
parent43ddb9b8c08ac148a9b03f16f45ec2cb71243f81 (diff)
downloadUXP-71fd51a863171d9f462d1311749de717361406a6.tar
UXP-71fd51a863171d9f462d1311749de717361406a6.tar.gz
UXP-71fd51a863171d9f462d1311749de717361406a6.tar.lz
UXP-71fd51a863171d9f462d1311749de717361406a6.tar.xz
UXP-71fd51a863171d9f462d1311749de717361406a6.zip
Bug 1320362: Move indexedDb storage type in the storage inspector into a new column
Issue #31
Diffstat (limited to 'devtools/client/storage')
-rw-r--r--devtools/client/storage/ui.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/devtools/client/storage/ui.js b/devtools/client/storage/ui.js
index 1241d0120..946db68a2 100644
--- a/devtools/client/storage/ui.js
+++ b/devtools/client/storage/ui.js
@@ -573,7 +573,7 @@ StorageUI.prototype = {
},
/**
- * Populates the selected entry from teh table in the sidebar for a more
+ * Populates the selected entry from the table in the sidebar for a more
* detailed view.
*/
displayObjectSidebar: Task.async(function* () {
@@ -615,6 +615,11 @@ StorageUI.prototype = {
let otherProps = itemProps.filter(
e => !["name", "value", "valueActor"].includes(e));
for (let prop of otherProps) {
+ let column = this.table.columns.get(prop);
+ if (column && column.private) {
+ continue;
+ }
+
let cookieProp = COOKIE_KEY_MAP[prop] || prop;
// The pseduo property of HostOnly refers to converse of isDomain property
rawObject[cookieProp] = (prop === "isDomain") ? !item[prop] : item[prop];
@@ -626,6 +631,11 @@ StorageUI.prototype = {
} else {
// Case when displaying IndexedDB db/object store properties.
for (let key in item) {
+ let column = this.table.columns.get(key);
+ if (column && column.private) {
+ continue;
+ }
+
mainScope.addItem(key, {}, true).setGrip(item[key]);
this.parseItemValue(key, item[key]);
}