Open
Bug 792380
Opened 13 years ago
Updated 3 years ago
A clic on the "browse" button of an HTML input type="file" does nothing when the "inline-block" CSS style is setted by javascript events
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
NEW
People
(Reporter: test.auriga.01, Assigned: smaug)
References
Details
Attachments
(1 file)
|
1.45 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Build ID: 20101026210630
Steps to reproduce:
<html><body>
<!-- 1) Expected behaviour (hereafter "work"):
a clic on the button "browse" must display the file selection window.
Actual behaviour (hereafter "does not work"):
nothing happens when the button "browse" is clicked -->
<!-- Does not work for browser: FF15
Work for browsers: FF3, FF13, FF14, IE9, GC15 -->
<input type="file"
onmousedown="this.style.display='inline-block'"
onmouseup="this.style.display='block'"
onmouseover="this.style.display='inline-block'"
onmouseout="this.style.display='block'" />
<!-- Does not work for browsers: FF3, FF13, FF14, FF15
Work for browsers: IE9, GC15 -->
<input type="file"
onmousedown="this.style.display='inline-block'"
onmouseup="this.style.display='block'" />
<!-- 2) The same case as #1 with the same event attributes, but put on the div tag above.
Expected behaviour and actual behaviour are identical. -->
<div onmousedown="this.style.display='inline-block'"
onmouseup="this.style.display='block'"
onmouseover="this.style.display='inline-block'"
onmouseout="this.style.display='block'">
<input type="file" />
</div>
<div onmousedown="this.style.display='inline-block'"
onmouseup="this.style.display='block'">
<input type="file" />
</div>
</body></html>
<!--
Browsers used to test:
FF3: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Built from http://hg.mozilla.org/releases/mozilla-1.9.2/rev/8fe44c79dfd1
FF13: Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1
Built from http://hg.mozilla.org/releases/mozilla-release/rev/f48d675ffa9f
FF14: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20100101 Firefox/14.0.1
Built from http://hg.mozilla.org/releases/mozilla-release/rev/e5728a4e106c
FF15: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20100101 Firefox/15.0.1
Built from http://hg.mozilla.org/releases/mozilla-release/rev/0b774a1067fe
IE9: Windows Internet Explorer 9 - Version: 9.0.8112.16421 - Update version: 9.0.9 (KB2722913)
GC15: Google Chrome 15.0.874.102 (Build officiel 106587) m
Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.102 Safari/535.2
OS: Windows - WebKit: 535.2 (@98017) - JavaScript: V8 3.5.10.22 - Flash: 11,0,1,152
-->
Actual results:
Nothing happens when the button "browse" is clicked.
Expected results:
A clic on the button "browse" must display the file selection window.
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
I can confirm that the testcase works in Opera12 (all cases)
I'm lost about the component. Can you help here Boris ?
Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Firefox → Core
Comment 3•13 years ago
|
||
The mousedown and mouseup reframe, so I bet there's never an actual click event on the button, since it goes away between reframes. Let's start with form controls, I guess, though it could be an events issue.... But in general, changing display type on mousedown/up is pretty insane.
Component: General → Layout: Form Controls
| Assignee | ||
Comment 4•13 years ago
|
||
Yeah, re-framing is tricky. We get new native anon content ...
Could be fixed by checking the first non-native anon in ESM.
I'll try to remember to look at this soon, but not today.
Assignee: nobody → bugs
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•