Output more logs for debugging

This commit is contained in:
YUKI Hiroshi 2016-08-26 17:48:04 +09:00
parent 8762f8f2ea
commit 471742bb0b

View File

@ -6489,6 +6489,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
); );
var newTabs = []; var newTabs = [];
var treeStructure = utils.getTreeStructureFromTabs(aTabs); var treeStructure = utils.getTreeStructureFromTabs(aTabs);
log('moveTabsInternal: treeStructure ', treeStructure);
// Firefox fails to "move" collapsed tabs. So, expand them first // Firefox fails to "move" collapsed tabs. So, expand them first
// and collapse them after they are moved. // and collapse them after they are moved.
@ -6545,7 +6546,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
if (shouldClose) if (shouldClose)
sourceService.closeOwner(sourceBrowser); sourceService.closeOwner(sourceBrowser);
if (newTabs.length) if (newTabs.length) {
log('moveTabsInternal: applying tree structure for new ' + newTabs.length + ' tabs');
this.applyTreeStructureToTabs( this.applyTreeStructureToTabs(
newTabs, newTabs,
treeStructure, treeStructure,
@ -6553,6 +6555,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
return !aCollapsed return !aCollapsed
}) })
); );
}
for (let i = collapsedStates.length - 1; i > -1; i--) for (let i = collapsedStates.length - 1; i > -1; i--)
{ {