update for Firefox 8

This commit is contained in:
SHIMODA Hiroshi 2011-07-20 19:59:59 +09:00
parent 131d15c8cb
commit 2c0d84aaa2

View File

@ -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);
}