commit 7474b31e96645b688fa45b4fe8ab7a4a0bc659f7 parent 9c2a7a9e77d5573238696716a7d71bc5eff7d0c9 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 3 Feb 2016 01:19:44 -0500 Don't hang if Zotero.debug() is called on a window Diffstat:
| M | chrome/content/zotero/xpcom/utilities.js | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1393,7 +1393,8 @@ Zotero.Utilities = { // Only dump single level for nsIDOMNode objects (including document) if (Zotero.isFx && !Zotero.isBookmarklet - && obj instanceof Components.interfaces.nsIDOMNode + && (obj instanceof Components.interfaces.nsIDOMNode + || obj instanceof Components.interfaces.nsIDOMWindow) ) { level = maxLevel; }