After using the Web console to show an alert, the keyboard focus is not returned to the command line. Steps to reproduce: 1. Open the Web console (Ctrl+Shift+K) 2. At the command line, type alert("x") and press Enter 3. Close the alert box that appears 4. Type some more text Actual results: Nothing happens, because the keyboard focus is no longer on the command line (it's put onto the web page instead). Expected results: The characters typed should have appeared on the Web console command line, because that's where I was typing before the alert was shown.
When using alert() the user is explicitly switching focus to content, so I think we shouldn't do anything differently here.