ブックマークグループの制御と同じ挙動を履歴サイドバーパネルにも適用するようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4919 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-10 10:06:47 +00:00
parent c4ed3a7b51
commit d06ad331c8
3 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,7 @@ overlay chrome://browser/content/browser.xul chrome://treestyletab/content/trees
overlay chrome://browser/content/bookmarks/bookmarksPanel.xul chrome://treestyletab/content/bookmarksOverlay.xul
overlay chrome://browser/content/places/editBookmarkOverlay.xul chrome://treestyletab/content/editBookmarkOverlay.xul
overlay chrome://browser/content/history/history-panel.xul chrome://treestyletab/content/bookmarksOverlay.xul
overlay chrome://multipletab/content/config.xul chrome://treestyletab/content/multipletabConfigOverlay.xul

View File

@ -126,7 +126,7 @@ var TreeStyleTabBookmarksService = {
getItemIdsForContainerNode : function(aNode)
{
var ids = [];
if (!PlacesUtils.nodeIsContainer(aNode)) return ids;
if (!aNode || !PlacesUtils.nodeIsContainer(aNode)) return ids;
var root = aNode;
if ('getContainerNodeWithOptions' in PlacesUtils) { // Firefox 3.5 or later
@ -155,6 +155,8 @@ var TreeStyleTabBookmarksService = {
{
window.removeEventListener('load', this, false);
if (!('PlacesUIUtils' in window)) return;
eval('PlacesUIUtils._openTabset = '+
PlacesUIUtils._openTabset.toSource().replace(
/(function[^\(]*\([^\)]+)(\))/,

View File

@ -6,6 +6,10 @@
<script src="treestyletab.js" type="application/x-javascript; version=1.7"/>
<script src="bookmarksOverlay.js" type="application/x-javascript; version=1.7"/>
<page id="history-panel">
<stringbundleset id="placesStringSet"/>
</page>
<stringbundleset id="placesStringSet">
<stringbundle id="treestyletab-stringbundle"
src="chrome://treestyletab/locale/treestyletab.properties"/>