From eb42092e49f9326b5c3e06851028a54adf82b048 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 30 Sep 2014 21:19:33 +0900 Subject: [PATCH] Use DOM constructor instead of XPCOM interface to detect DOM element --- content/treestyletab/windowHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/treestyletab/windowHelper.js b/content/treestyletab/windowHelper.js index 9335d504..80badf21 100644 --- a/content/treestyletab/windowHelper.js +++ b/content/treestyletab/windowHelper.js @@ -139,7 +139,7 @@ var TreeStyleTabWindowHelper = { eval('aObserver._setEffectAllowedForDataTransfer = '+ aObserver._setEffectAllowedForDataTransfer.toSource().replace( '{', - '{ var TSTTabBrowser = this instanceof Ci.nsIDOMElement ? (this.tabbrowser || this) : gBrowser ; var TST = TSTTabBrowser.treeStyleTab;' + '{ var TSTTabBrowser = this instanceof Element ? (this.tabbrowser || this) : gBrowser ; var TST = TSTTabBrowser.treeStyleTab;' ).replace( /\.screenX/g, '[TST.screenPositionProp]' ).replace(