From a48285eeedb24dbe5dc2ec99ba8864959d074e55 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 15 Oct 2008 03:27:47 +0000 Subject: [PATCH] =?UTF-8?q?LastTab=E3=81=A8=E3=81=AE=E7=AB=B6=E5=90=88?= =?UTF-8?q?=E3=82=92=E8=A7=A3=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3127 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/hacks.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index f305dbc6..f1125ca8 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -700,4 +700,11 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() { ); } + // LastTab + if ('LastTab' in window) { + TreeStyleTabService.registerTabFocusAllowance(function(aTabBrowser) { + return !aTabBrowser.treeStyleTab.getPref('extensions.lasttab.focusLastTabOnClose'); + }); + } + };