Output more debug logs
This commit is contained in:
parent
1267db34b7
commit
f6cd1c2602
@ -98,7 +98,7 @@ BrowserUIShowHideObserver.prototype = {
|
|||||||
{
|
{
|
||||||
case 'childList':
|
case 'childList':
|
||||||
if (aMutation.target == this.box) {
|
if (aMutation.target == this.box) {
|
||||||
this.logMutation(aMutation, 'BrowserUIShowHideObserver_onMutation/childList');
|
this.logMutation(aMutation, 'onMutation/childList');
|
||||||
this.owner.browser.treeStyleTab.updateFloatingTabbar(TreeStyleTabConstants.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
|
this.owner.browser.treeStyleTab.updateFloatingTabbar(TreeStyleTabConstants.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -109,7 +109,7 @@ BrowserUIShowHideObserver.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(error) {
|
catch(error) {
|
||||||
this.logMutation(aMutation, 'BrowserUIShowHideObserver_onMutation(error)');
|
this.logMutation(aMutation, 'onMutation(error)');
|
||||||
Components.utils.reportError(error);
|
Components.utils.reportError(error);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
@ -153,10 +153,6 @@ BrowserUIShowHideObserver.prototype = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
var target = aMutation.target;
|
var target = aMutation.target;
|
||||||
var state = this.serializeBoxState(target);
|
|
||||||
if (target.__treestyletab_mutationObserver_lastState == state)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
// ignore modifications of each tab
|
// ignore modifications of each tab
|
||||||
TST.getTabFromChild(target) ||
|
TST.getTabFromChild(target) ||
|
||||||
@ -176,6 +172,14 @@ BrowserUIShowHideObserver.prototype = {
|
|||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
this.logMutation(aMutation, 'onAttributeModified');
|
||||||
|
|
||||||
|
var state = this.serializeBoxState(target);
|
||||||
|
if (target.__treestyletab_mutationObserver_lastState == state) {
|
||||||
|
log(' => skip modification with no state change');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var tabbar = this.owner.browser.tabContainer;
|
var tabbar = this.owner.browser.tabContainer;
|
||||||
var placeHolder = TST.tabStripPlaceHolder;
|
var placeHolder = TST.tabStripPlaceHolder;
|
||||||
|
|
||||||
@ -224,13 +228,14 @@ BrowserUIShowHideObserver.prototype = {
|
|||||||
// (Pale Moon, Tab Mix Plus, etc.)
|
// (Pale Moon, Tab Mix Plus, etc.)
|
||||||
!tabbarVisibilityMismatching &&
|
!tabbarVisibilityMismatching &&
|
||||||
!tabbarMatrixMismatching
|
!tabbarMatrixMismatching
|
||||||
)
|
) {
|
||||||
|
log(' => skip modifications around controlled element');
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
this.logMutation(aMutation, 'BrowserUIShowHideObserver_onAttributeModified');
|
|
||||||
|
|
||||||
this.handlingAttrChange = true;
|
this.handlingAttrChange = true;
|
||||||
|
|
||||||
|
log(' => update floating tab bar');
|
||||||
TST.updateFloatingTabbar(TreeStyleTabConstants.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
|
TST.updateFloatingTabbar(TreeStyleTabConstants.kTABBAR_UPDATE_BY_WINDOW_RESIZE);
|
||||||
|
|
||||||
var w = this.box.ownerDocument.defaultView;
|
var w = this.box.ownerDocument.defaultView;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user