Output more debug log

This commit is contained in:
YUKI Hiroshi 2016-01-20 20:39:46 +09:00
parent 3f8ff3f2b3
commit e41d737fe2

View File

@ -1608,6 +1608,11 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
createSubtree : function TSTWindow_createSubtree(aTabs) createSubtree : function TSTWindow_createSubtree(aTabs)
{ {
if (utils.isDebugging('window'))
dump('TSTWindow_createSubtree\n'+aTabs.map(function(aTab) {
return ' '+aTab._tPos+': '+aTab.linkedBrowser.currentURI.spec;
}).join('\n')+'\n');
var rootTabs = this.getRootTabs(aTabs); var rootTabs = this.getRootTabs(aTabs);
var parent = this.getParentTab(aTabs[0]); var parent = this.getParentTab(aTabs[0]);
@ -1627,6 +1632,8 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, {
var parentInTargets = aTabs.indexOf(this.getParentTab(aDescendantTab)) > -1; var parentInTargets = aTabs.indexOf(this.getParentTab(aDescendantTab)) > -1;
if (inTargets || (inTargets == parentInTargets)) if (inTargets || (inTargets == parentInTargets))
return; return;
if (utils.isDebugging('window'))
dump(' detaching unselected descendant: '+aDescendantTab._tPos+': '+aDescendantTab.linkedBrowser.currentURI.spec+'\n');
if (parentTab) if (parentTab)
b.treeStyleTab.attachTabTo(aDescendantTab, parentTab, { b.treeStyleTab.attachTabTo(aDescendantTab, parentTab, {
dontExpand : true, dontExpand : true,