Closed
Bug 661978
Opened 14 years ago
Closed 13 years ago
Input type file will cause a hang in fennec
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox9 fixed, fennec+)
VERIFIED
FIXED
Firefox 9
People
(Reporter: nhirata, Assigned: dougt)
References
(Blocks 1 open bug)
Details
(Keywords: hang, mobile)
Attachments
(3 files)
Mozilla/5.0 (Android; Linux armv71; rv7.0a1) Gecko/20110603 Firefox/7.0a1 Fennec/7.0a1
Device: Thunderbolt
OS: Android 2.2
1. go to http://people.mozilla.com/~nhirata/html_tp/NextAction_Bug614356.html
2. go to the section called "No form (should have next)"
3. click in the text field called "Last name:" and type something and hit the return key
4. click in the next field that is next to the browse button
Expected: A popup menu to choose a file appears and you can select an app
Actual: A popup menu appears but the app hangs
Reporter | ||
Updated•14 years ago
|
OS: Mac OS X → Android
Hardware: x86 → ARM
Comment 1•14 years ago
|
||
I was able to hang the browser by pressing back after following the steps in comment 0 when I pressed the system back key.
Updated•13 years ago
|
Comment 2•13 years ago
|
||
I see something similar on an ASUS transformer (honeycomb 3.1) when touching an input type="file" on, e.g. the bugzilla page to file a new bug with an attachment, though the "browse" button next to it does work properly.
Comment 3•13 years ago
|
||
Note the stock browser doesn't show an input field for input type="file"
Comment 4•13 years ago
|
||
That is, it only shows a "browse" button
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → doug.turner
tracking-fennec: ? → +
Assignee | ||
Comment 5•13 years ago
|
||
When this happens, I see GeckoApp::showFilePicker() be called, but it does not return.
Assignee | ||
Comment 6•13 years ago
|
||
mike -- when this happens to you, do you see a large black area at the bottom of the screen where, perhaps, the software keyboard could be?n
Comment 7•13 years ago
|
||
(In reply to comment #6)
> mike -- when this happens to you, do you see a large black area at the
> bottom of the screen where, perhaps, the software keyboard could be?n
No. neither with or without the hardware keyboard attached.
Assignee | ||
Comment 8•13 years ago
|
||
startActivityForResult, for some reason, doesn't always call onActivityResult. If onActivityResult isn't called, our implementation will wait on a monitor and never will wake up.
Where we call startActivityForResult:
http://mxr.mozilla.org/mozilla-central/source/embedding/android/GeckoApp.java#664
Where we wait:
http://mxr.mozilla.org/mozilla-central/source/embedding/android/GeckoApp.java#669
Where we notify:
http://mxr.mozilla.org/mozilla-central/source/embedding/android/GeckoApp.java#728
Looking at my logging, it clearly suggests that onActivityResult isn't called.
Assignee | ||
Comment 10•13 years ago
|
||
this is another screenshot. it shows blassey as I was explaining the hang to him over video.
Assignee | ||
Comment 11•13 years ago
|
||
this patch spins an event look to avoid deadlocking on the gecko thread.
Assignee | ||
Updated•13 years ago
|
Attachment #554189 -
Flags: review?(blassey.bugs)
Comment 12•13 years ago
|
||
Comment on attachment 554189 [details] [diff] [review]
patch v.1
Review of attachment 554189 [details] [diff] [review]:
-----------------------------------------------------------------
GOOD JOB DOUG!!
We should probably do this for all of our sync queues that are called on the gecko thread. Please file a follow up bug for that.
Attachment #554189 -
Flags: review?(blassey.bugs) → review+
Assignee | ||
Comment 13•13 years ago
|
||
THAT IS A GREAT IDEA! Lets do that work in bug 680311.
Assignee | ||
Comment 14•13 years ago
|
||
Comment 15•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 9
Comment 16•13 years ago
|
||
VERIFIED FIXED!
Mozilla/5.0 (Android; Linux armv7l; rv:9.0a1) Gecko/20110819 Firefox/9.0a1 Fennec/9.0a1
Status: RESOLVED → VERIFIED
status-firefox9:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•