Closed Bug 14663 Opened 25 years ago Closed 25 years ago

JavaScript Error: ReferenceError: pref is not defined

Categories

(SeaMonkey :: Preferences, defect, P3)

All
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: norrisboyd, Assigned: mcafee)

Details

(Whiteboard: Fix in hand, r=matt)

When selecting Edit/Preferences... the message "JavaScript Error:
ReferenceError: pref is not defined" appears on the console.

The error appears to be line 30 in pref tree.xul:

    onload="ChangePanelURL(pref-appearance.xul);"

Should that be

    onload="ChangePanelURL('pref-appearance.xul');"

(note the addition of single quotes). After making the change I get an
an assertion when ChangePanelURL is called that "panel window is null".
Assignee: shuang → mcafee
Target Milestone: M11
stealing this from shuang.
mozilla/xpfe/components/prefwindow/resources/content/preftree.xul
fixed.  Will open another bug on the assertion problem.
this never got fixed!  Anyways, "reopening".
Still happening, I think we should put the quotes back and get rid of the
assertion, not sure why that's there.  We must be blowing off some
initialization some how, but ? maybe just returning for that case is Ok.
Whiteboard: Fix in hand, r=matt
Fix in hand, r=matt
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed.  No JS error when bringing up prefs window now. r=matt.
Status: RESOLVED → VERIFIED
Using the 1999111016 build under NT, I don't see an error in the console.
Marking verified.
Bulk move of all Pref UI component bugs to new Preferences component.  Pref UI 
component will be deleted.
Component: Pref UI → Preferences
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.