button disabled when reloading

UNCONFIRMED
Unassigned

Status

()

Core
General
UNCONFIRMED
7 years ago
6 years ago

People

(Reporter: Angelo Borsotti, Unassigned)

Tracking

(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: DUPEME)

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
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.
(Reporter)

Comment 1

7 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
(Reporter)

Comment 3

7 years ago
Exactly. Is there something the javascript in a page can do to prevent
such restore?

Comment 4

6 years ago
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

Comment 5

6 years ago
This also looks similar to bug 516920.
You need to log in before you can comment on or make changes to this bug.