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\([^;]+\);)/,