From 28438f4b10146f1d9e078b3f09f9d02b7d5bd49b Mon Sep 17 00:00:00 2001 From: Mick Weiss Date: Fri, 7 May 2010 09:49:19 +0200 Subject: [PATCH] Bug 563291 - Selectively open tabs from session:restore "Well this is embarrassing" page. r=dao --HG-- extra : rebase_source : 537ccc1791256a93c224ae653d07d5981f57e037 --- .../components/sessionstore/content/aboutSessionRestore.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/browser/components/sessionstore/content/aboutSessionRestore.js b/browser/components/sessionstore/content/aboutSessionRestore.js index 52b2a7d9264c..45ac894b4358 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")