Cannot set label of prefpane dynamically

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
9 years ago
9 years ago

People

(Reporter: ryanli, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a2pre) Gecko/20100217 Minefield/3.7a2pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a2pre) Gecko/20100217 Minefield/3.7a2pre

If we use JavaScript to set the label attribute of a specific <prefpane> element after <prefwindow> is loaded, the label will not updated in the toolbar.

Reproducible: Always

Steps to Reproduce:
1. Create a <prefwindow> element with several <prefpane>s inside.
2. Set the `label' attribute of a certain <prefpane> element with JavaScript.
Actual Results:  
The label in the toolbar isn't updated to what you assigned in JavaScript, instead, it remains as the one in XUL.

Expected Results:  
The label in the toolbar should be updated as the assigned new label in JavaScript.
You need to log in before you can comment on or make changes to this bug.