Firefox 3でブックマークグループをタブで開くかどうかの設定が機能するようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1931 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-02-27 02:22:15 +00:00
parent 59a639853c
commit e9508cd29b

View File

@ -38,9 +38,20 @@ window.addEventListener('load', function() {
PlacesUtils._openTabset.toSource().replace(
'browserWindow.getBrowser().loadTabs(',
<><![CDATA[
if (TreeStyleTabService.getTreePref('openGroupBookmarkAsTabSubTree') &&
where.indexOf('tab') == 0)
if (
TreeStyleTabService.getTreePref('openGroupBookmarkAsTabSubTree') &&
(
where.indexOf('tab') == 0 ||
aEvent.target.getAttribute('openInTabs') == 'true'
)
)
{
TreeStyleTabService.readyToOpenNewTabGroup();
replaceCurrentTab = false;
}
else if (!TreeStyleTabService.getPref('browser.tabs.loadFolderAndReplace')) {
replaceCurrentTab = false;
}
$&]]></>
)
);