Closed
Bug 318751
Opened 19 years ago
Closed 18 years ago
<input type=file> are not displayed
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jpiper, Unassigned)
References
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
I have an XBL binding in userContent.css that clears the accesskey attribute on any element that sets it. Depending on the selector I use, <input type=file> will not display. It does not matter if the <input> sets its accesskey attribute.
This selector does not work:
*[accesskey] {
-moz-binding: url("http://localhost/XBL/accesskey.xml#diediedie");
}
This one works fine:
*[accesskey="f"],
*[accesskey="e"],
*[accesskey="v"],
*[accesskey="g"],
*[accesskey="b"],
*[accesskey="t"],
*[accesskey="h"],
*[accesskey="d"] {
-moz-binding: url("http://localhost/XBL/accesskey.xml#diediedie");
}
This also works fine, however it applies to ANY <input type=file>:
*[accesskey] {
background: #f00;
}
I uninstalled the previous version of Firefox before installing 1.5, and created a new profile.
Reproducible: Always
Steps to Reproduce:
Reporter | ||
Comment 1•19 years ago
|
||
Reporter | ||
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
Did this work in 1.0.x?
Reporter | ||
Comment 4•19 years ago
|
||
I don't know for certain. I used a Greasemonkey script to do this in 1.0.x.
PortableFirefox 1.0.7 exhibits the same behavior, though.
http://johnhaller.com/jh/mozilla/portable_firefox/
Seems like your problem might be better solved by going to about:config and setting the ui.key.generalAccessKey pref to 0.
Component: General → Layout: Form Controls
Product: Firefox → Core
QA Contact: general → layout.form-controls
Version: unspecified → 1.8 Branch
Reporter | ||
Comment 6•19 years ago
|
||
Yes, I used to do that. Unfortunately that affects access keys in chrome, as well.
![]() |
||
Comment 7•18 years ago
|
||
The problem is that your CSS is applying to the anonymous content, and that XBL and native anonymous content really don't mix.
Depends on: 286895
Reporter | ||
Comment 8•18 years ago
|
||
Okay, so input[accesskey] was matching the anonymous text box inside the <input type="file">. It works as expected when I change the rule from my userContent.css to this:
input[accesskey] {
-moz-binding: url("http://localhost/XBL/accesskey.xml#diediedie");
}
input[type="file"] > input { -moz-binding: none; }
![]() |
||
Comment 9•18 years ago
|
||
Fixed by checkin for bug 286895.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•