If your debugging via console to print out non-local variable and you allow that window to slip into the background clicking on the Console Icon in Drosera should bring that window to the foreground and in focus for events. As is, it does nothing and can be confusing if you have lots of windows obsuring it and if you keep clicking the Console Icon expecting the window to come to the front. You'll be waiting a while.
I think there should also be a menu command that does the same thing the toolbar button does.
Created attachment 11270 [details] attempted patch Fixes focus bug and makes command + L activate the console as well.
Comment on attachment 11270 [details] attempted patch Actually i think this should be: if (consoleWindow.blur) if (!consoleWindow.focus()) Dosent make sense.
Comment on attachment 11270 [details] attempted patch Actually this should just be an else case. No harm in calling focus() if the console is already focused. if (!consoleWindow) consoleWindow = window.open("console.html", "console", "top=200, left=200, width=500, height=300, toolbar=yes, resizable=yes"); + else + consoleWindow.focus();
No need for the {} braces on the if and else, since they are one line statments.
My if (consoleWindow.blur) comment was wrong also. THere is no property on the window bject to test if it already has focus. The original patch was just always focusing the window (twice!).
Created attachment 11280 [details] revised patch
Landed in r17436.
Closing since Drosera has been replaced by the new Web Inspector debugger. Moving to the New Bugs component so the Drosera component can be closed and removed.