As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact bugzilla-admin@mozilla.org
Last Comment Bug 681318 - checkbox input does not enable after reload
: checkbox input does not enable after reload
Status: RESOLVED DUPLICATE of bug 654072
:
Product: Firefox
Classification: Client Software
Component: General (show other bugs)
: 7 Branch
: x86 Windows 7
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-23 06:29 PDT by Thomas
Modified: 2012-11-22 06:07 PST (History)
3 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Reporter's Testcase (210 bytes, text/html)
2011-08-24 15:09 PDT, (mostly gone) XtC4UaLL [:xtc4uall]
no flags Details

Description User image Thomas 2011-08-23 06:29:42 PDT
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0) Gecko/20100101 Firefox/7.0
Build ID: 20110816154714

Steps to reproduce:

I have disabled a checkbox using Javascript and reloaded the page.


Actual results:

The checkbox remained disabled.


Expected results:

The checkbox should not be disabled since there is nothing (js, html etc) disabling the checkbox.
Comment 1 User image (mostly gone) XtC4UaLL [:xtc4uall] 2011-08-23 16:05:07 PDT
Testcase?

Does a Nightly Build show the same Issue?
http://nightly.mozilla.org/
Comment 2 User image Thomas 2011-08-24 01:30:12 PDT
Testcase:

<html>
<body>
<script>
document.getElementsByTagName('body')[0].onclick = function() {
	document.getElementsByTagName('input')[0].disabled = true;
}
</script>
<input type="checkbox">
</body>
</html>

Upon refresh after clicking on the body the checkbox does not re-enable. Testcase in other browsers works as expected.
Comment 3 User image (mostly gone) XtC4UaLL [:xtc4uall] 2011-08-24 15:09:39 PDT
Created attachment 555560 [details]
Reporter's Testcase

Ok, to get it right:

* load the Testcase

What should be expected: Checkbox disabled or enabled State?

* clicking on the Body

disabled or enabled?

* reloading (normal)

disabled or enabled?

* reloading (bypassing the Cache using e.g. CTRL+F5)

disabled or enabled?

Whatever the expected Result is, I see differences amongst Firefox Nightly, Opera Next and Chrome 15 in some Steps.

Maybe it's too late over here that I fail to understand properly :-)
Comment 4 User image Thomas 2011-08-25 13:03:14 PDT
What I get when I load this Testcase in the most recent FF 7

* load the Testcase

checkbox enabled

* clicking on the Body (body is quite small so click next to the checkbox)

checkbox disabled

* reloading (normal)

expected: checkbox enabled
actual: checkbox still disabled

* reloading (bypassing the Cache using e.g. CTRL+F5)

expected: checkbox enabled
actual: checkbox still disabled

So the enabled/disabled state is not restored upon refresh.
Comment 5 User image Thomas Ahlblom 2011-08-25 13:23:56 PDT
Still disabled after F5, but enabled after Ctrl+F5:
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.20) Gecko/20110803 Firefox/3.6.20
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101 Firefox/7.0
Mozilla/5.0 (X11; Linux x86_64; rv:8.0a2) Gecko/20110825 Firefox/8.0a2
Mozilla/5.0 (X11; Linux x86_64; rv:9.0a1) Gecko/20110825 Firefox/9.0a1
Comment 6 User image Matthias Versen [:Matti] 2012-11-22 06:07:52 PST
looks like a dupe of bug 654072

*** This bug has been marked as a duplicate of bug 654072 ***

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