Closed Bug 651554 Opened 14 years ago Closed 14 years ago

permaorange: browser_tapping.js | Fired a good double tap

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: philor, Assigned: stechz)

References

Details

Attachments

(3 files)

TEST-INFO | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Test good double tap TEST-INFO | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | ---- event check: failed match (TapDouble != TapSingle TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Fired a good double tap TEST-INFO | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Test two single taps in different locations TEST-PASS | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Fired two single taps in different places, not a double tap TEST-INFO | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Test a pan - non-tap event TEST-PASS | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Fired a pan which should be seen as a non event TEST-INFO | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Test a long pan - non-tap event TEST-PASS | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Fired a pan + delay which should be seen as a non-event TEST-INFO | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Test a good long pan failed to validate file when downloading /mnt/sdcard/tests/mochitest.log! TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/mobile/chrome/browser_tapping.js | Test timed out
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Why yes, yes I do know how to search before I file, I just don't ever actually remember to do it :) However, that patch just fixes the timeout at the end, not the permaorange in the "Fired a good double tap" part.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: permaorange: browser_tapping.js | Fired a good double tap then a timeout after Test a good long pan → permaorange: browser_tapping.js | Fired a good double tap
Not Android-specific, the n900s do the same thing.
OS: Android → All
Hardware: ARM → All
Attached patch Potential PatchSplinter Review
On desktop I occasionally see this. There is looks like more than two clicks are being fired. I have seen this happen before with local tabs. Events fired in the local tab can propagate back up and be received by input.js again. So one potential solution to this problem (if it is what is causing the tests for fail) is to try and catch those events in input.js.
Attachment #527857 - Flags: review?(ben)
Attachment #527857 - Attachment is patch: true
Attachment #527857 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 527857 [details] [diff] [review] Potential Patch That input.js code is supposed to be Fennec-agnostic. It's supposed to just take events and turn them into TapXXX events without concerning itself with content process / parent process.
Attachment #527857 - Flags: review?(ben)
What is the actual code that is firing mousedown/mouseup/mousemove again?
Taps occur at: http://mxr.mozilla.org/mobile-browser/source/chrome/tests/browser_tapping.js#166 I'm not sure that this will fix this anyway. We should be seeing the same effect when the user taps. These are just going to be extremely close together.
I typed up a big comment for this, but bzexport failed me. It went something like... The issue here is that our content process code regenerates mouse events, because the platform couldn't do this for us at first. Therefore, we needed code to handle the local browser case so that we don't have a mouse event feedback loop (see _targetIsContent in browser.js). In this test, we can simply opt out of content stuff by sending the event to something that doesn't have the class "inputHandler." In the future, Wes and I talked about using the platform's event forwarding to do the work for us, but we'll need a platform patch that takes async scrolling into consideration (this shouldn't be difficult to do). I'll file a bug.
Filed bug 652240 for platform patch.
Comment on attachment 527872 [details] [diff] [review] permaorange: browser_tapping.js | Fired a good double tap This seems fine to me, and its worth seeing if it fixes the test failures. Thanks!
Attachment #527872 - Flags: review?(wjohnston) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Still failing every time on Android, and most of the time but not quite every time on Maemo.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch todo() on deviceSplinter Review
According to me last month, this'll make it an intermittent UNEXPECTED PASS on Maemo, but I checked the last 8 runs and none of them passed, so I think it'll be intermittent enough to live with.
Attachment #535955 - Flags: review?(mark.finkle)
Attachment #535955 - Flags: review?(mark.finkle) → review+
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Can you provide some steps to reproduce in order to validate this bug?
Assignee: nobody → ben
I found this in tinderboxpushlog: TEST-KNOWN-FAIL | chrome://mochitests/content/browser/mobile/chrome/tests/browser_tapping.js | Fired a good double tap I'm not sure if I can mark this bug as verified fixed.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: