Closed Bug 654741 Opened 13 years ago Closed 12 years ago

Notify Fennec chrome of window.scrollTo/scrollBy even when scroll position does not change

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec + ---

People

(Reporter: mbrubeck, Unassigned)

References

Details

(Keywords: compat, mobile, testcase)

Attachments

(1 file)

When content calls window.scrollTo/scrollBy in Fennec, we would like to hide the Fennec chrome.  This is useful for pages like Google Maps which use this to hide the titlebar and sidebars on page load (see bug 653956).

In the default Android and iOS browsers, calling scrollTo causes the browser chrome to scroll out of view even if it does not change the content scroll position.  For example, the attached test case calls scrollTo(0,-1) on load, and it hides the browser chrome in the Android Browser but not in Fennec.

nsGfxScrollFrameInner::ScrollToImpl suppresses all events and notifications if the new location is the same as the old one.  We would need some sort of notification that still fires in this case.  I hope we can do this without a noticeable performance impact from too many messages:
http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsGfxScrollFrame.cpp#1828
Nominating for tracking-fennec because it would improve usability on popular pages like Google Maps.
tracking-fennec: --- → ?
tracking-fennec: ? → 6+
Still tracking, but it won't make fx7, let alone fx6, unless some work starts soon.
tracking-fennec: 6+ → 8+
tracking-fennec: 8+ → +
Is this still an issue on Fennec Native? Does it still block 616348?
(In reply to Aaron Train [:aaronmt] from comment #3)
> Is this still an issue on Fennec Native? Does it still block 616348?

Mark/Matt - Can one of you please comment to answer Aaron's question.
Mat we believe that this was fixed by the native rewrite. Reopen if this is still an issue.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: