From 04427948de5150ae28edda54e238a5c3a8596ad2 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 5 Jan 2016 16:47:37 +0900 Subject: [PATCH] Output more debug logs --- modules/fullscreenObserver.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/fullscreenObserver.js b/modules/fullscreenObserver.js index 6dcd7dea..7e89b216 100644 --- a/modules/fullscreenObserver.js +++ b/modules/fullscreenObserver.js @@ -39,6 +39,11 @@ Components.utils.import('resource://treestyletab-modules/constants.js'); Components.utils.import('resource://treestyletab-modules/utils.js'); +function mydump(aString) { + if (utils.isDebugging('fullscreenObserver')) + dump(aString); +} + function FullscreenObserver(aWindow) { this.window = aWindow; this.init(); @@ -90,6 +95,7 @@ FullscreenObserver.prototype = { onSizeModeChange : function FullscreenObserver_onSizeModeChange() { + mydump('onSizeModeChange: '+d.documentElement.getAttribute('sizemode')+'\n'); this.updateToolboxPosition(); if (!this.window.gBrowser.treeStyleTab.notifyingRenderedEvent) this.window.gBrowser.treeStyleTab.updateFloatingTabbar(TreeStyleTabConstants.kTABBAR_UPDATE_BY_WINDOW_RESIZE);