From 56b6a0d02149c548284178cde5017bde93cd4401 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 4 Jan 2017 17:28:46 -0500 Subject: [PATCH] Set browser.dom.window.dump.enabled to true if debug output enabled dump() works regardless within XPCOM (which is how Zotero.debug() works), but not on window objects without this pref --- chrome/content/zotero/xpcom/debug.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index 069c3cc8cb..b297321168 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -49,6 +49,8 @@ Zotero.Debug = new function () { this.storing = _store; this.enabled = _console || _store; + + Zotero.Prefs.set('browser.dom.window.dump.enabled', _console, true); } this.log = function (message, level, stack) {