summaryrefslogtreecommitdiffstats
path: root/browser/components
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-14 12:20:40 +0200
committerGitHub <noreply@github.com>2018-05-14 12:20:40 +0200
commit6a855dbdcf6e683ff5217d058906c1ebcaa71d9a (patch)
treeb9470c53c684ddf5b220306afece6c4227affe6b /browser/components
parent36b8fd734f590eb726ca2e50f8d1ff9cc968b8e1 (diff)
parent1eaa467afcc3b9f76bd93f6af640727c183086b6 (diff)
downloadUXP-6a855dbdcf6e683ff5217d058906c1ebcaa71d9a.tar
UXP-6a855dbdcf6e683ff5217d058906c1ebcaa71d9a.tar.gz
UXP-6a855dbdcf6e683ff5217d058906c1ebcaa71d9a.tar.lz
UXP-6a855dbdcf6e683ff5217d058906c1ebcaa71d9a.tar.xz
UXP-6a855dbdcf6e683ff5217d058906c1ebcaa71d9a.zip
Merge pull request #350 from janekptacijarabaci/aboutSessionRestore_error_1
about:sessionrestore - fix an error "treeView.treeBox is null" in aboutSessionRestore.js
Diffstat (limited to 'browser/components')
-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