Bug 1648957 - OpenPGP keyDetailsDlg structure: no subkeys shown. r=Khushil a=wsmwk DONTBUILD
authorKai Engert <kaie@kuix.de>
Sat, 27 Jun 2020 23:13:52 +0200
changeset 39480 7b3c0e1440512d505a825df64dc3bd10a40713af
parent 39479 7783b3d24305817f20a3ac803be3e4eeb4e15d9a
child 39481 9c08c80ec341936cd58f8a8fbdf01a59bec5fd17
push id402
push userclokep@gmail.com
push dateMon, 29 Jun 2020 20:48:04 +0000
reviewersKhushil, wsmwk
bugs1648957
Bug 1648957 - OpenPGP keyDetailsDlg structure: no subkeys shown. r=Khushil a=wsmwk DONTBUILD
mail/extensions/openpgp/content/ui/keyDetailsDlg.js
--- a/mail/extensions/openpgp/content/ui/keyDetailsDlg.js
+++ b/mail/extensions/openpgp/content/ui/keyDetailsDlg.js
@@ -559,17 +559,17 @@ function createSubkeyItem(subkey) {
 }
 
 function SubkeyListView(keyObj) {
   this.subkeys = [];
   this.rowCount = keyObj.subKeys.length + 1;
   this.subkeys.push(createSubkeyItem(keyObj));
 
   for (let i = 0; i < keyObj.subKeys.length; i++) {
-    this.subkeys.push(createSubkeyItem(keyObj));
+    this.subkeys.push(createSubkeyItem(keyObj.subKeys[i]));
   }
 }
 
 // implements nsITreeView
 SubkeyListView.prototype = {
   getCellText(row, column) {
     let s = this.subkeys[row];