From 4f73a9861d124bcbf587f0af5612e9a5364c7f82 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Fri, 3 Aug 2012 01:55:06 +0900 Subject: [PATCH] Open bookmarks as tabs correctly when a bookmark folder is dropped to the tab bar even if the folder includes any subfolder. --- content/treestyletab/bookmarksOverlay.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/bookmarksOverlay.js b/content/treestyletab/bookmarksOverlay.js index d8e994ca..5e539709 100644 --- a/content/treestyletab/bookmarksOverlay.js +++ b/content/treestyletab/bookmarksOverlay.js @@ -243,7 +243,10 @@ var TreeStyleTabBookmarksService = { '$& var ids = [];' ).replace( 'urls.push(item.uri);', - '$& ids.push(item.id);' + 'if (item.uri) { $& ids.push(item.id); }' + ).replace( + 'this.markPageAsTyped(item.uri);', + 'if (item.uri) { $& }' ).replace( /(browserWindow\.(?:getBrowser\(\)|gBrowser)\.loadTabs\([^;]+\);)/,