Closed Bug 1455788 Opened 6 years ago Closed 6 years ago

Hover events where the source is touch get filtered.

Categories

(GeckoView :: General, enhancement, P2)

Unspecified
Android
enhancement

Tracking

(firefox61 wontfix, firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox61 --- wontfix
firefox62 --- fixed

People

(Reporter: rbarker, Assigned: eeejay)

References

Details

Attachments

(1 file, 2 obsolete files)

This is a recent change from bug 1454081 which filters hover events that are generated by a mouse. It has broken hover in Firefox Reality which currently synthesizes touch events, some of which are hover events.
Depends on: 1454081
P2 b/c I think Randall has a work around.
Assignee: nobody → eitan
Priority: -- → P2
I've worked around this right now in Firefox Reality but probably still worth figuring out.
Comment on attachment 8971622 [details] [diff] [review]
Consolidate a11y MotionEvent handling to the GeckoView. r?jchen

Review of attachment 8971622 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoView.java
@@ +523,5 @@
> +        if (mSession == null) {
> +            return false;
> +        }
> +
> +        return (SessionAccessibility.Settings.isEnabled() &&

I think the | SessionAccessibility.Settings.isEnabled() | check should go inside `SessionAccessibility.onMotionEvent`
Attachment #8971622 - Flags: review?(nchen) → review+
(In reply to Jim Chen [:jchen] [:darchons] from comment #4)
> Comment on attachment 8971622 [details] [diff] [review]
> Consolidate a11y MotionEvent handling to the GeckoView. r?jchen
> 
> Review of attachment 8971622 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> :::
> mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoView.java
> @@ +523,5 @@
> > +        if (mSession == null) {
> > +            return false;
> > +        }
> > +
> > +        return (SessionAccessibility.Settings.isEnabled() &&
> 
> I think the | SessionAccessibility.Settings.isEnabled() | check should go
> inside `SessionAccessibility.onMotionEvent`

Since GeckoSession.getAccessibility is a lazy getter, I was worried we would instantiate the object needlessly on the first motion event. But I guess we do that on window attachment anyway!
Should this go in before the freeze? Looks like this isn't a P1, so I will leave this here until next week.
Attachment #8971622 - Attachment is obsolete: true
Attachment #8971744 - Attachment is obsolete: true
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e9f138b851de
Consolidate a11y MotionEvent handling to the GeckoView. r=jchen
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e9f138b851de
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Target Milestone: Firefox 61 → Firefox 62
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 62 → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: