Open Bug 592665 Opened 14 years ago Updated 2 years ago

button disabled when reloading

Categories

(Core :: General, defect)

x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: angelo.borsotti, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100824 

The attached page contains a button and an hidden DIV containing a table and
three buttons. The table by clicking on a button. When it is loaded
the first time, or with SHIFT + reload, the second button in the DIV is enabled (by default). If the DIV is displayed, and the page reloaded, the said button
is shown as disabled.

Reproducible: Always

Steps to Reproduce:
1. load the attached page
2. note the value of the "displayed" property of the "paraadd" button (false)
3. click on "paradigmi", a table is displayed with three buttons below it.
4. reload the page: note that the "paraadd" button is now disabled
5. reload the page with SHIFT reload: the same button is now enabled
Actual Results:  
The page contains some javascript code, that is executed only when the
"paradigmi" button is clicked. Thus, when it is loaded the second time,
no javascript code is executed. The disabled property of "paraadd" button
is then not changed by the page itself when the page is reloaded (and by the
way it is never changed anyway by the javascript in the page). However,
is seems that upon reloading the button is disabled depending on what the
user has done on the page prior to reloading. This is strange even because
before reloading that button was not disabled.
I have reduced the page as much as possible.

Expected Results:  
That the button is shown as enabled.
We restore the disabled state of buttons on reload; the issue here is restoring to the wrong element...
Whiteboard: DUPEME
Exactly. Is there something the javascript in a page can do to prevent
such restore?
If bug 654072 is fixed, we won't attempt to restore the disabled state, so I guess this will be fixed as well.
Depends on: 654072
This also looks similar to bug 516920.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: