From 4c66b95516576aa2e49a24e2c718e9241d7a8fd2 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 1 Jun 2012 07:41:29 -0600 Subject: [PATCH] Make Firebug Lite console fullscreen in more browsers. Former-commit-id: a42e7d187a582a1caea721860cf3ed4bd0f94368 --- perf/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perf/index.html b/perf/index.html index d34ff89a2..ef3833cc6 100644 --- a/perf/index.html +++ b/perf/index.html @@ -34,10 +34,12 @@ }()); window.onload = function() { - var sibling = document.getElementsByTagName('script')[0], + var fbUI = document.getElementById('FirebugUI'), + fbDoc = (fbDoc = fbUI.contentWindow || fbUI.contentDocument).document || fbDoc, + sibling = document.getElementsByTagName('script')[0], script = document.createElement('script'); - document.getElementById('FirebugUI').style.height = '100%'; + fbUI.style.height = fbDoc.body.style.height = fbDoc.documentElement.style.height = '100%'; script.src = 'perf.js?t=' + (+new Date); sibling.parentNode.insertBefore(script, sibling); };