summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/content
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-13 08:29:42 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-13 08:29:42 +0200
commitfaf4b17b3cc192a989a6c0b36a0973c04ddab3c0 (patch)
tree00371309c0743d4a452d30d8e5c6f70cd65cf8c9 /browser/components/sessionstore/content
parent1eaa467afcc3b9f76bd93f6af640727c183086b6 (diff)
downloadUXP-faf4b17b3cc192a989a6c0b36a0973c04ddab3c0.tar
UXP-faf4b17b3cc192a989a6c0b36a0973c04ddab3c0.tar.gz
UXP-faf4b17b3cc192a989a6c0b36a0973c04ddab3c0.tar.lz
UXP-faf4b17b3cc192a989a6c0b36a0973c04ddab3c0.tar.xz
UXP-faf4b17b3cc192a989a6c0b36a0973c04ddab3c0.zip
about:welcomeback - fix an error "invalid 'in' operand gTreeData[idx]" in aboutSessionRestore.js
Diffstat (limited to 'browser/components/sessionstore/content')
-rw-r--r--browser/components/sessionstore/content/aboutSessionRestore.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/browser/components/sessionstore/content/aboutSessionRestore.js b/browser/components/sessionstore/content/aboutSessionRestore.js
index 165f48041..8f265235d 100644
--- a/browser/components/sessionstore/content/aboutSessionRestore.js
+++ b/browser/components/sessionstore/content/aboutSessionRestore.js
@@ -289,7 +289,9 @@ var treeView = {
get rowCount() { return gTreeData.length; },
setTree: function(treeBox) { this.treeBox = treeBox; },
getCellText: function(idx, column) { return gTreeData[idx].label; },
- isContainer: function(idx) { return "open" in gTreeData[idx]; },
+ isContainer: function(idx) {
+ return gTreeData[idx] ? "open" in gTreeData[idx] : false;
+ },
getCellValue: function(idx, column){ return gTreeData[idx].checked; },
isContainerOpen: function(idx) { return gTreeData[idx].open; },
isContainerEmpty: function(idx) { return false; },