Closed Bug 575295 Opened 14 years ago Closed 14 years ago

Clicking links broken after scrolling via in-page (uri fragment) link

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file test case
1. Open the attached test case in Fennec.
2. Click on "in-page link".  Fennec will scroll to the bottom of the page.
3. Click on "off-page link" at the bottom of the page.

Expected results: Fennec opens link to http://example.com
Actual results: Nothing happens.

This affects some real-world cases, like the "skip to menu" link on the mobile version of http://ask.metafilter.com/
Attachment #454539 - Attachment description: tests → test case
Attachment #454539 - Attachment filename: test.html → test-in-page-link.html
Regression from bug 573732.
Blocks: 573732
(In reply to comment #1)
> Regression from bug 573732.

yeah sounds like i've again forgot to add the scrollX/scrollY positions to the returned rects.
Attached patch patchSplinter Review
Adjust for scroll offset *after* client rect comparison.  (Partial revert of http://hg.mozilla.org/mobile-browser/rev/6f38d39b3f45 .)
Attachment #454867 - Flags: review?(21)
Comment on attachment 454867 [details] [diff] [review]
patch

     let scrollOffset = Util.getScrollOffset(content);
-    aX -= scrollOffset.x;
-    aY -= scrollOffset.y;

Nice catch. I guess let scrollOffset can also be moved next to where he is used.
Attachment #454867 - Flags: review?(21) → review+
http://hg.mozilla.org/mobile-browser/rev/8f3efa051b27
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
verified FIXED on builds:
Mozilla/5.0 (X11; U; Linux armv71; Nokia N900; en-US; rv:2.0b2pre) Gecko/2010630 Namoroka/4.0b2pre Fennec/2.0a1pre


follow-up bug though: bug 575999
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Flags: in-litmus?
Assignee: mbrubeck → ayanshah62
Assignee: ayanshah62 → mbrubeck
Flags: in-litmus? → in-litmus?(ayanshah62)
https://litmus.mozilla.org/show_test.cgi?id=15190
Flags: in-litmus?(ayanshah62) → in-litmus+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: