-moz-user-input enables/disables editing, but also shortcut keys and event bubbling




12 years ago
5 years ago


(Reporter: Benjamin Penney, Unassigned)


2.0 Branch
Windows 2000

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [CLOSEME 2010-10-15], URL)



12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20060308 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv: Gecko/20060308 Firefox/


I'm developing a web application in Mozilla Firefox. I haven't been able to find any official documentation on CSS attributes that begin with "-moz". However, I stumbled upon this site:


It lists the "disabled" state of "-moz-user-input" as disabling editing in a textbox. I'm trying to use the "-moz-user-input" attribute on checkboxes, and for most things, it does exactly what I want it to do. Unfortunately, it also has a couple of unwanted side effects:

1. Firefox's shortcut keys (such as CTRL+T on the PC) do not work when a checkbox with "-moz-user-input" set to "disabled" has the focus.

2. Events that the checkbox receives do not bubble up if the checkbox has "-moz-user-input" set to "disabled".

That last effect is pretty peculiar. I understand "-moz-user-input" being "disabled" to mean that a particular input element will not process any events, but shouldn't those events bubble up to containing elements anyway?

Reproducible: Always

Steps to Reproduce:
1. Go to the URL: <http://www.trafficofficemanager.com/Firefox/checkbox.html>.
2. Click on the first checkbox to give it the focus. (The checkbox won't change state when you do.)
3. Press CTRL+T (on PC) or APPLE+T (on Mac).
4. Click on the second checkbox to give it the focus.
5. Press CTRL+T (on PC) or APPLE+T (on Mac).
Actual Results:  
A capture for a click event (during the bubbling phase) on the <BODY> tag of this page has been setup. A message box would be displayed if the click event bubbled to the <BODY> tag. Observe that no message box was displayed in step 2. Also, nothing happens when pressing the appropriate shortcut key for opening a new tab in step 3. In step 4 and 5, the checkbox functions like a normal checkbox.

Expected Results:  
In my opinion, and I haven't read any documentation to the contrary:
The click on the first checkbox (in step 2) should bubble and fire the code to display a message box that's attached to the click event of the <BODY> tag. Firefox's shortcut keys should work in step 3.
Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Whiteboard: CLOSEME 06/27
Version: unspecified → 1.5.0.x Branch

Comment 2

11 years ago
Yes, the problem is still present when using Firefox I tested on Windows, but at last check the problem was present on other platforms too. If you'd like to confirm it for yourself, check the URL mentioned in my original post.


11 years ago
Whiteboard: CLOSEME 06/27
Version: 1.5.0.x Branch → 2.0 Branch
This bug was originally reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.8 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
Whiteboard: [CLOSEME 2010-09-15]
Reporter, are you still seeing this issue with Firefox 3.6.10 or later in safe mode? If not, please close. These links can help you in your testing.
Whiteboard: [CLOSEME 2010-09-15] → [CLOSEME 2010-10-15]
No reply, INCOMPLETE. Please retest with Firefox 3.6.x or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE

Comment 6

5 years ago
Bug with events not bubbling up persists even now, in Firefox 17.0.1.
You need to log in before you can comment on or make changes to this bug.