Closed
Bug 1233056
Opened 10 years ago
Closed 10 years ago
Long tapping on a link will select a different link from the page
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox45 verified, firefox46 verified, fennec45+)
VERIFIED
FIXED
Firefox 46
People
(Reporter: cos_flaviu, Assigned: rbarker)
References
Details
(Keywords: regression)
Attachments
(1 file, 5 obsolete files)
Environment:
Device: (Android Asus Transformer Pad (Android 4.2.1);
Build: Aurora 45.0a2 (2015-12-15);
Steps to reproduce:
1. Go to http://people.mozilla.com/~nhirata/html_tp/listlinks.html
2. Long tap on a link.
Expected result:
The tapped link is highlighted and the context menu is triggered.
Actual result:
The long tap action is made on a different position on screen (different link is selected).
Notes:
This issue is intermittent.
I wonder if this could be related to the discussion in bug 1222234 comment 10.
Flaviu, can you reproduce this on a wide range of devices, or just the one?
tracking-fennec: --- → ?
Flags: needinfo?(flaviu.cos)
Or maybe related to bug 1232893.
Reporter | ||
Comment 3•10 years ago
|
||
Ran into similar behavior on Google search results using Nexus 4 (Android 5.0.1).
Flags: needinfo?(flaviu.cos)
Comment 4•10 years ago
|
||
This is on Aurora 45, so probably not APZ related. Kats, any ideas?
tracking-fennec: ? → 45+
Flags: needinfo?(bugmail.mozilla)
Comment 6•10 years ago
|
||
Not off the top of my head. It's probably an accidental regression from the APZ work but getting a window would be helpful.
Flags: needinfo?(bugmail.mozilla)
Keywords: regression,
regressionwindow-wanted
Comment 7•10 years ago
|
||
From bisecting mozilla-central with "ac_add_options --disable-android-apz":
The first bad revision is:
changeset: 276168:73246a388339
user: Botond Ballo <botond@mozilla.com>
date: Fri Nov 27 21:39:07 2015 -0500
summary: Bug 1228597 - Remove the MOZ_SINGLE_PROCESS_APZ define. r=tn
Blocks: 1228597
Keywords: regressionwindow-wanted
Comment 8•10 years ago
|
||
Direct link to the commit: https://hg.mozilla.org/mozilla-central/rev/73246a388339
Comment 9•10 years ago
|
||
Hmm, did that land before or after we enabled APZ for fennec?
Comment 10•10 years ago
|
||
It landed after we enabled APZ for fennec on nightly
Comment 11•10 years ago
|
||
Then shouldn't removing the ifdefs not change anything?
Comment 12•10 years ago
|
||
For the APZ-enabled case, yes. For the APZ-disabled case, there's a bunch of code (previously guarded by MOZ_SINGLE_PROCESS_APZ) that is now getting run. And that's causing a regression, when APZ is disabled.
![]() |
Assignee | |
Updated•10 years ago
|
Assignee: nobody → rbarker
![]() |
Assignee | |
Comment 13•10 years ago
|
||
![]() |
Assignee | |
Comment 14•10 years ago
|
||
Try with JPZ enabled: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1adab20378a1
![]() |
Assignee | |
Comment 16•10 years ago
|
||
Judging by that try, I missed something.
![]() |
Assignee | |
Comment 17•10 years ago
|
||
Attachment #8703229 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 18•10 years ago
|
||
![]() |
Assignee | |
Comment 20•10 years ago
|
||
Address comments.
Attachment #8703704 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 21•10 years ago
|
||
Added missing comment.
Attachment #8703890 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•10 years ago
|
Attachment #8703917 -
Flags: review?(tnikkel)
![]() |
Assignee | |
Comment 22•10 years ago
|
||
With APZ disabled as it is on Aurora:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b0e4d20a853b
With APZ enabled as it is on nightly:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5cc6299394a9
While there is some orange, None of the failures looks to be related to this patch.
Comment 23•10 years ago
|
||
Comment on attachment 8703917 [details] [diff] [review]
0001-Bug-1233056-Long-tapping-on-a-link-will-select-a-different-link-from-the-page-16010417-04bfe9b.patch
> void
> nsDisplayResolution::HitTest(nsDisplayListBuilder* aBuilder,
> const nsRect& aRect,
> HitTestState* aState,
> nsTArray<nsIFrame*> *aOutFrames)
> {
>+#if !defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ANDROID_APZ)
> nsIPresShell* presShell = mFrame->PresContext()->PresShell();
> nsRect rect = aRect.RemoveResolution(presShell->ScaleToResolution() ? presShell->GetResolution () : 1.0f);
> mList.HitTest(aBuilder, rect, aState, aOutFrames);
>+#else
>+ mList.HitTest(aBuilder, aRect, aState, aOutFrames);
>+#endif
> }
I think the |#if !defined(MOZ_WIDGET_ANDROID) || defined(MOZ_ANDROID_APZ)| code should be correct everywhere. Do you know if this hunk is needed? Can we land without this change?
Attachment #8703917 -
Flags: review?(tnikkel) → review+
Comment 24•10 years ago
|
||
![]() |
Assignee | |
Comment 25•10 years ago
|
||
Patch pushed to try.
Attachment #8703917 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 26•10 years ago
|
||
Comment on attachment 8705938 [details] [diff] [review]
0001-Bug-1233056-Long-tapping-on-a-link-will-select-a-different-link-from-the-page-r-tnikkel-16010820-8a839aa.patch
Approval Request Comment
[Feature/regressing bug #]: Bug 1233056
[User impact if declined]: Long tapping on a link will select the wrong link in Fennec
[Describe test coverage new/current, TreeHerder]: Normal test coverage on try won't catch this because Aurora is still using the Java Pan Zoom controller (which is what was broken) while nightly is using the C++APZ which the patch does not affect. I did a try runs with both JPZ and C++APZ and did not find any failures related to this patch.
[Risks and why]: Risk should be low since this patch is restoring fennec to how it used to work before the breakage.
[String/UUID change made/needed]: None.
Attachment #8705938 -
Flags: approval-mozilla-aurora?
Comment 27•10 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
Comment 28•10 years ago
|
||
Comment on attachment 8705938 [details] [diff] [review]
0001-Bug-1233056-Long-tapping-on-a-link-will-select-a-different-link-from-the-page-r-tnikkel-16010820-8a839aa.patch
Fix a regression, early in the 45 cycle, taking it.
Attachment #8705938 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
![]() |
||
Comment 29•10 years ago
|
||
bugherder uplift |
Comment 30•10 years ago
|
||
Confirmed that the link from c0 and my issues with Reddit are fixed in today's Aurora nightly :)
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•