From 2c0d84aaa2ef37408a79db0c82aee1efc84b6c20 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Wed, 20 Jul 2011 19:59:59 +0900 Subject: [PATCH] update for Firefox 8 --- modules/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/utils.js b/modules/utils.js index c65859ec..9f73d5cf 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -493,7 +493,9 @@ var TreeStyleTabUtils = { while (targets.hasMoreElements()) { let target = targets.getNext() - .QueryInterface(Ci.nsIDOMWindowInternal); + .QueryInterface(Ci.nsIDOMWindow); + if ('nsIDOMWindowInternal' in Ci) // for Firefox 7 or olders + target = target.QueryInterface(Ci.nsIDOMWindowInternal); windows.push(target); }