Closed Bug 1199768 Opened 9 years ago Closed 9 years ago

Long-pressing at top of page with URL bar hidden triggers URL bar context menu

Categories

(Firefox for Android Graveyard :: General, defect)

43 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox40 affected, firefox41 affected, firefox42 affected, firefox43 fixed, fennec43+)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox40 --- affected
firefox41 --- affected
firefox42 --- affected
firefox43 --- fixed
fennec 43+ ---

People

(Reporter: kats, Assigned: kats)

Details

(Keywords: regression)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #956075 +++

Nexus S running recent nightly. STR:

1. Load a page (e.g. mozilla.org) and scroll down so that the URL bar scrolls off the screen.
2. Tap near the top of the screen (where the URL would have been)

Expected:
Tap is delivered to content

Actual:
URL bar is tapped and we end up on the URL entry screen.

Note that this is happening on current Aurora builds as well and is *not* a regression from bug 1180295. It's exactly the same bug as bug 956075 so that must have regressed at some point.

I looked at the code and it's almost certainly because the code in GeckoViewFlipper.java is calling ViewHelper.getTranslationY(this) when in fact the GeckoViewFlipper instance is inside a LinearLayout which is the actual thing with the translation. So calling ViewHelper.getTranslationY(getParent()) or some equivalent thing should fix this, but I haven't tried it yet.
Attached patch PatchSplinter Review
Yup, that does the trick.
Assignee: nobody → bugmail.mozilla
Attachment #8654311 - Flags: review?(wjohnston2000)
tracking-fennec: --- → ?
Not sure wesj will have time to review this given his new job?
Comment on attachment 8654311 [details] [diff] [review]
Patch

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

Sounds reasonable to me.
Attachment #8654311 - Flags: review?(wjohnston2000) → review+
https://hg.mozilla.org/mozilla-central/rev/c21957fdcbee
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
tracking-fennec: ? → 43+
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: