diff --git a/extensions/layout-debug/ui/content/layoutdebug.js b/extensions/layout-debug/ui/content/layoutdebug.js index dea849e03d1..c3721d55f91 100644 --- a/extensions/layout-debug/ui/content/layoutdebug.js +++ b/extensions/layout-debug/ui/content/layoutdebug.js @@ -149,9 +149,7 @@ function OnLDBLoad() else gBrowser.goHome(); - // XXX Shouldn't this be gBrowser.contentWindow? - var win = gBrowser.docShell.getInterface(Components.interfaces.nsIDOMWindow); - gDebugger.init(win); + gDebugger.init(gBrowser.contentWindow); checkPersistentMenus(); gRTestIndexList = new RTestIndexList();