button disabled when reloading




9 years ago
2 months ago


(Reporter: angelo.borsotti, Unassigned)


(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)


(Whiteboard: DUPEME)


(1 attachment)



9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20100824 Firefox/3.6.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: 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.

Comment 1

9 years ago
Created attachment 471109 [details]
page that shows the disabling of the button
We restore the disabled state of buttons on reload; the issue here is restoring to the wrong element...
Whiteboard: DUPEME

Comment 3

9 years ago
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.
You need to log in before you can comment on or make changes to this bug.