Bug 563291 - Selectively open tabs from session:restore "Well this is embarrassing" page. r=dao

--HG--
extra : rebase_source : 537ccc1791256a93c224ae653d07d5981f57e037
This commit is contained in:
Mick Weiss 2010-05-07 09:49:19 +02:00
Родитель 2330359c39
Коммит d71ab66b3b
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

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