Permalink
Browse files

Fix the attach logic

  • Loading branch information...
1 parent 87ac7f5 commit 90fa86de50c2787e3ce1e8270d1f6602f28acbbf @janodvarko janodvarko committed Sep 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 extension/content/firebug/firebug.js
@@ -901,7 +901,8 @@ window.Firebug =
//detached -> inbrowser
if (!forceOpen && Firebug.isDetached())
{
- var topWin = Firebug.chrome.window.top;
+ // We need firebug.xul here so, don't use 'top' since it references browser.xul
+ var topWin = Firebug.chrome.window.parent;
topWin.exportFirebug();
topWin.close();

0 comments on commit 90fa86d

Please sign in to comment.