about:sessionrestore - fix an error "treeView.treeBox is null" in aboutSessionRestore.js

This commit is contained in:
janekptacijarabaci 2018-05-13 08:28:44 +02:00 committed by Roy Tam
commit 9860239ea3

View file

@ -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