Closed Bug 690542 Opened 14 years ago Closed 13 years ago

HUDService.jsm, line 6028: window is null

Categories

(DevTools :: Console, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mnyromyr, Unassigned)

Details

Current NightlyDebug.app. Close all windows, then try to open Tools -> Web Developer -> Web Console: JavaScript error: resource:///modules/HUDService.jsm, line 6028: window is null at the shell. I guess nobody told it that Mac doesn't have to have open any windows at all. ;-)
What would be the proper behavior here? a) do nothing (without errors!) b) open the web console on an empty page c) open the web console on the home page d) open the web console on whatever comes up after session restore e) ? Everything besides (a) smells like trouble to me, since it will mess with the session restore mechanism.
Maybe the command shouldn't be active at all. There's not much point in opening a new window just to use something that wants to do $stuff to your current window …
Good idea, the Page Source menu item is similarly disabled.
Or, just wrap that call in a try/catch and reportError("Cannot open the Web console when no windows are present") This is a very minor problem
likely no longer a problem (or the problem's moved).
Status: NEW → RESOLVED
Closed: 13 years ago
Component: Developer Tools → Developer Tools: Console
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.