Skip to content

Commit

Permalink
update for Firefox 8
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 20, 2011
1 parent 093af43 commit 9cabf23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions content/tabcatalog/tabcatalog.js
Expand Up @@ -203,7 +203,9 @@ var TabCatalog = {
target;
while (targets.hasMoreElements())
{
target = targets.getNext().QueryInterface(Components.interfaces.nsIDOMWindowInternal);
target = targets.getNext().QueryInterface(Components.interfaces.nsIDOMWindow);
if ('nsIDOMWindowInternal' in Components.interfaces) // for Firefox 7 or olders
target = target.QueryInterface(Components.interfaces.nsIDOMWindowInternal);
browserWindows.push(target);
}

Expand All @@ -221,7 +223,9 @@ var TabCatalog = {
i;
while (targets.hasMoreElements())
{
target = targets.getNext().QueryInterface(Components.interfaces.nsIDOMWindowInternal);
target = targets.getNext().QueryInterface(Components.interfaces.nsIDOMWindow);
if ('nsIDOMWindowInternal' in Components.interfaces) // for Firefox 7 or olders
target = target.QueryInterface(Components.interfaces.nsIDOMWindowInternal);
for (i in browserWindows)
{
if (target != browserWindows[i]) continue;
Expand Down

0 comments on commit 9cabf23

Please sign in to comment.