Closed Bug 751699 Opened 12 years ago Closed 12 years ago

'navigator is undefined' when accessing navigator, unless you prefix it with window.

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 751077

People

(Reporter: jgriffin, Unassigned)

Details

In the latest nightly build, there is no 'navigator' global; you have to use window.navigator instead. To reproduce: In scratchpad enter the script: alert(navigator.langauge); and execute it. Results: Exception: navigator is undefined You can get it to work by changing the script to: alert(window.navigator.language); The former works in Firefox 12 and 13 (beta), but fails in Firefox 14 (aurora) and nightly.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
No, not quite the right dup.
You need to log in before you can comment on or make changes to this bug.