Last Comment Bug 592665 - button disabled when reloading
: button disabled when reloading
Status: UNCONFIRMED
DUPEME
:
Product: Core
Classification: Components
Component: General (show other bugs)
: unspecified
: x86 Windows 7
-- normal with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on: 654072
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-01 07:02 PDT by Angelo Borsotti
Modified: 2011-11-29 13:15 PST (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
page that shows the disabling of the button (25.08 KB, text/html)
2010-09-01 07:04 PDT, Angelo Borsotti
no flags Details

Description User image Angelo Borsotti 2010-09-01 07:02:37 PDT
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.
Comment 1 User image Angelo Borsotti 2010-09-01 07:04:10 PDT
Created attachment 471109 [details]
page that shows the disabling of the button
Comment 2 User image Boris Zbarsky [:bz] (still a bit busy) 2010-09-01 11:14:38 PDT
We restore the disabled state of buttons on reload; the issue here is restoring to the wrong element...
Comment 3 User image Angelo Borsotti 2010-09-01 12:07:32 PDT
Exactly. Is there something the javascript in a page can do to prevent
such restore?
Comment 4 User image Nickolay_Ponomarev 2011-11-29 13:07:01 PST
If bug 654072 is fixed, we won't attempt to restore the disabled state, so I guess this will be fixed as well.
Comment 5 User image Nickolay_Ponomarev 2011-11-29 13:15:38 PST
This also looks similar to bug 516920.

Note You need to log in before you can comment on or make changes to this bug.