diff --git a/browser/components/sessionstore/content/aboutSessionRestore.js b/browser/components/sessionstore/content/aboutSessionRestore.js index 52b2a7d9264..45ac894b435 100644 --- a/browser/components/sessionstore/content/aboutSessionRestore.js +++ b/browser/components/sessionstore/content/aboutSessionRestore.js @@ -160,9 +160,10 @@ function onListClick(aEvent) { var row = {}, col = {}; treeView.treeBox.getCellAt(aEvent.clientX, aEvent.clientY, row, col, {}); if (col.value) { - // restore this specific tab in the same window for middle-clicking - // or Ctrl+clicking on a tab's title - if ((aEvent.button == 1 || aEvent.ctrlKey) && col.value.id == "title" && + // restore this specific tab in the same window for double clicking or middle clicking + // or Ctrl+clicking on a tab's title - note: ctrl clicking doesn't work on Mac + if ((aEvent.button == 1 || aEvent.button == 0 && aEvent.detail == 2 || aEvent.ctrlKey) && + col.value.id == "title" && !treeView.isContainer(row.value)) restoreSingleTab(row.value, aEvent.shiftKey); else if (col.value.id == "restore")