Closed Bug 397095 Opened 17 years ago Closed 17 years ago

prefwindow.showPane dies if no prefpanes are found

Categories

(Toolkit :: Preferences, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mnyromyr, Assigned: mnyromyr)

References

Details

Attachments

(1 file)

Attached patch easy fix (deleted) — Splinter Review
Opening a <prefwindow> without any <prefpane> elements (yet) results in: JavaScript error: chrome://global/content/bindings/preferences.xml, line 631: aPaneElement has no properties
Attachment #281860 - Flags: review?(gavin.sharp)
Comment on attachment 281860 [details] [diff] [review] easy fix >Index: toolkit/content/widgets/preferences.xml > <method name="showPane"> >+ if (!aPaneElement) >+ return; > this._selector.selectedItem = document.getAnonymousElementByAttribute(this, "pane", aPaneElement.id); Add a newline after the return?
Attachment #281860 - Flags: review?(gavin.sharp) → review+
Assignee: nobody → mnyromyr
Comment on attachment 281860 [details] [diff] [review] easy fix Very low risk null check.
Attachment #281860 - Flags: approval1.9?
Attachment #281860 - Flags: approval1.9? → approval1.9+
Landed on trunk incl. requested newline.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: