From 1e2ea4969f27e44c8cecf2ce61c66ac0a3dc31f4 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Thu, 26 Jan 2012 11:05:28 +0900 Subject: [PATCH] "bookmark this tree" doesn't work on Firefox 11 and later --- content/treestyletab/bookmarksOverlay.js | 2 +- .../treestyletab/res/bookmarkMultipleTabs.xul | 44 ++++++++++++++----- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index e3abedd5..ca9e1447 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -65,7 +65,7 @@ var TreeStyleTabBookmarksService = { bookmarkTabSubtree : function TSTBMService_bookmarkTabSubtree(aTabOrTabs) { var tabs = aTabOrTabs; - if (!(tabs instanceof Array)) { + if (!Array.isArray(tabs)) { tabs = [aTabOrTabs]; } diff --git a/content/treestyletab/res/bookmarkMultipleTabs.xul b/content/treestyletab/res/bookmarkMultipleTabs.xul index 50d97c89..8b835a69 100644 --- a/content/treestyletab/res/bookmarkMultipleTabs.xul +++ b/content/treestyletab/res/bookmarkMultipleTabs.xul @@ -12,11 +12,11 @@ in JS files: window['piro.sakura.ne.jp'].bookmarkMultipleTabs.addBookmarkFor(tabsArray, folderName); - license: The MIT License, Copyright (c) 2009-2010 SHIMODA "Piro" Hiroshi - http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt + license: The MIT License, Copyright (c) 2009-2012 SHIMODA "Piro" Hiroshi + http://github.com/piroor/fxaddonlibs/blob/master/license.txt original: - http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/bookmarkMultipleTabs.xul - http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/bookmarkMultipleTabs_bookmarkPropertiesOverlay.xul + http://github.com/piroor/fxaddonlibs/blob/master/bookmarkMultipleTabs.xul + http://github.com/piroor/fxaddonlibs/blob/master/bookmarkMultipleTabs_bookmarkPropertiesOverlay.xul -->