Closed
Bug 296434
Opened 20 years ago
Closed 20 years ago
showPane(null) makes prefwindow unusable
Categories
(Toolkit :: Preferences, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 285513
People
(Reporter: asqueella, Unassigned)
Details
When you close the prefs window, the last selected pane's id is saved in localstore.rdf. If you remove/rename that pane before reopening the prefs window, you'll get absolutely broken window when you open it next time. This happens because prefwindow's constructor doesn't check whether the pane with saved id exists. It does something like this: <...> else if (this.lastSelected) paneToLoad = document.getElementById(this.lastSelected); <...> this.showPane(paneToLoad); // paneToLoad may be null! So either the constructor should be fixed to handle this case, or (better imho) showPane shouldn't break the prefwindow when it gets the null parameter.
Comment 1•20 years ago
|
||
Bug 285513 isn't in the right component, but I don't want to change it since that will remove the flags. *** This bug has been marked as a duplicate of 285513 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 2•20 years ago
|
||
didn't notice that.
Status: RESOLVED → VERIFIED
Summary: changing pane's id may break prefwindow because of the persisted lastSelected value ("showPane(null)" makes prefwindow unusable) → showPane(null) makes prefwindow unusable
You need to log in
before you can comment on or make changes to this bug.
Description
•