summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-13 08:28:44 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-05-13 08:28:44 +0200
commit1eaa467afcc3b9f76bd93f6af640727c183086b6 (patch)
tree4e14219b1a83e93be6c65bb49b7bcf218b37b85c /browser/components/sessionstore
parent34fcf334c8dc043088cbf2622279af4f8c495972 (diff)
downloadUXP-1eaa467afcc3b9f76bd93f6af640727c183086b6.tar
UXP-1eaa467afcc3b9f76bd93f6af640727c183086b6.tar.gz
UXP-1eaa467afcc3b9f76bd93f6af640727c183086b6.tar.lz
UXP-1eaa467afcc3b9f76bd93f6af640727c183086b6.tar.xz
UXP-1eaa467afcc3b9f76bd93f6af640727c183086b6.zip
about:sessionrestore - fix an error "treeView.treeBox is null" in aboutSessionRestore.js
Diffstat (limited to 'browser/components/sessionstore')
-rw-r--r--browser/components/sessionstore/content/aboutSessionRestore.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/browser/components/sessionstore/content/aboutSessionRestore.js b/browser/components/sessionstore/content/aboutSessionRestore.js
index 8a9410aa8..165f48041 100644
--- a/browser/components/sessionstore/content/aboutSessionRestore.js
+++ b/browser/components/sessionstore/content/aboutSessionRestore.js
@@ -188,6 +188,9 @@ function onListClick(aEvent) {
if (aEvent.button == 2)
return;
+ if (!treeView.treeBox) {
+ return;
+ }
var cell = treeView.treeBox.getCellAt(aEvent.clientX, aEvent.clientY);
if (cell.col) {
// Restore this specific tab in the same window for middle/double/accel clicking