Closed Bug 825498 Opened 12 years ago Closed 11 years ago

Hardware keyboard doesn't work in content since 20121223 nightly on ASUS Transformer TF101

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox19- affected, firefox20+ fixed, firefox21+ fixed, firefox22 fixed, fennec20+)

RESOLVED FIXED
Firefox 21
Tracking Status
firefox19 - affected
firefox20 + fixed
firefox21 + fixed
firefox22 --- fixed
fennec 20+ ---

People

(Reporter: glandium, Assigned: sriram)

References

Details

Attachments

(1 file, 1 obsolete file)

Last working nightly: ftp://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2012-12-22-03-08-36-mozilla-central-android/
First failing nightly: ftp://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/2012-12-23-03-08-32-mozilla-central-android/

Hardware keyboard stopped working in content (i've been testing on bugzilla main page text fields), but still works in the awesomebar (not quite unexpected).
tracking-fennec: --- → ?
CC+ Jim Chen in case the IME refactor was in play here.  (?)
Bisected to Bug 817706. Usually the content LayerView has focus and receives key events which get dispatched to Gecko, but in this case LayerView is not getting any key events (maybe because of loss of focus?)

Sriram, do you have any ideas?
Blocks: 817706
Flags: needinfo?(sriram)
Assignee: nobody → sriram
tracking-fennec: ? → 20+
Aaah. I think it has to do with the Tabs. I have added standard Android Tabs to the Gecko layout. So, they might gain the access. There was a similar problem in Awesomebar and I think Lucas fixed it long long ago.

(cc-ing him and trying to find what fixes that).
Flags: needinfo?(sriram)
There's an adb logcat attached to bug 826590 if that's helpful at all.

Also affects Galaxy Tab 10.1 with a bluetooth keyboard.
(In reply to Sriram Ramasubramanian [:sriram] from comment #3)
> Aaah. I think it has to do with the Tabs. I have added standard Android Tabs
> to the Gecko layout. So, they might gain the access. There was a similar
> problem in Awesomebar and I think Lucas fixed it long long ago.
> 
> (cc-ing him and trying to find what fixes that).

You're using TabWidget/TabHost in the tabs panel now. They will steal focus when you switch tabs. I guess you can avoid that by doing something like:

setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
setCurrentTab(...)
setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);

But I wonder if this wouldn't cause a11y issues somehow?
Attached patch PatchSplinter Review
This seems to work. I could interact with the content with this.
(However we don't show any focused state or anything on any of the widgets .. which feels soooo wrong!)
Attachment #702577 - Flags: review?(mark.finkle)
Attachment #702577 - Flags: review?(mark.finkle) → review+
This is still broken in the 01-18 build.
This never merged to central yet.
(In reply to Aaron Train [:aaronmt] from comment #10)
> This never merged to central yet.

ah, that would explain it. I saw the commit and failed to notice it was only to inbound.
https://hg.mozilla.org/mozilla-central/rev/ae0673777ec8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
This still affects beta. Is that what the tracking flag is for. I hope so!
These patches are not even in aurora yet.
If it still affects beta (19), then let's check if it needs to uplift.
So, do we need to get this patch moved into Aurora and Beta? has a final determination of that happened? If so, please request approvals, or ask me to, since this affects users of TalkBack, too.
Flags: needinfo?(sriram)
This might not be needed. We are moving away from Spinner and Tabs approach. Hence not uplifting there. Aurora should be stable in a couple of days once the icon tabs in Bug 836043 lands.
Flags: needinfo?(sriram)
Comment on attachment 702577 [details] [diff] [review]
Patch

[Approval Request Comment]
Regression caused by (bug #): 817706
User impact if declined: Blind users won't be able to navigate web content with hardware keyboard devices.
Testing completed (on m-c, etc.): Yes
Risk to taking this patch (and alternatives if risky):

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 817706
User impact if declined: Blind users won't be able to navigate web content on hardware keyboard devices.
Testing completed (on m-c, etc.): Yes
Risk to taking this patch (and alternatives if risky): 
String or UUID changes made by this patch: None.

Also requesting approval on release in case we build a 19.0.x to take this as a ride-along, since the current release on Play Store is broken for affected blind users.
Attachment #702577 - Flags: approval-mozilla-release?
Attachment #702577 - Flags: approval-mozilla-beta?
Comment on attachment 702577 [details] [diff] [review]
Patch

Let's get this out asap on Beta to verify fixed there, flagged for tracking 19 in case there is a respin.
Attachment #702577 - Flags: approval-mozilla-release?
Attachment #702577 - Flags: approval-mozilla-release+
Attachment #702577 - Flags: approval-mozilla-beta?
Attachment #702577 - Flags: approval-mozilla-beta+
Comment on attachment 718057 [details] [diff] [review]
Test for uint32_t plug-in value.

Sorry for the spam! I fat-fingered an HG command and it attached this patch to the bug. :(
Attachment #718057 - Attachment is obsolete: true
Also, since the bug has a target milestone of Firefox21, I believe the Firefox21 tracking flag can be set to fixed as well.
Sriram, can you give me pointers where this patch would be applied to Firefox19 to fix the problem? The code this was inserted into for 21 and 20 didn't exist yet in 19, but the problem does.
Flags: needinfo?(sriram)
I dont think this is available in 19. Which means, we might not need this there.
Flags: needinfo?(sriram)
Hm, the problem is the same, though: Navigation into and inside the web content via a hardware keyboard is broken in 19. Different kind of bug?
That could be a different bug. The two states were need for a TabWidget, that was added and removed in 20. So, that shouldn't be a problem for 19.
Is the FF19 behavior suspected to be a regression from FF18? If so, let's definitely get a separate bug on file. It sounds like we can remove the FF19 tracking nomination here though.
(In reply to Alex Keybl [:akeybl] from comment #28)
> Is the FF19 behavior suspected to be a regression from FF18? If so, let's
> definitely get a separate bug on file.

Yes, this is definitely a regression from FF 18. However, as for a separate bug:

a) It only affects 19 now, since the above patch in slightly rebased form fixes it in 20, and 21 and 22 already have it fixed, and
b) we have no guarantee we'll actually find and fix the problem before we spin a 19.0.x, if that is at all being spun in the next 2-3 weeks.

So our consensus is to inform the user base of the problem and suggest to them to use 20 beta once the next one containing the fix comes out onto the store.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: