Closed Bug 1255997 Opened 8 years ago Closed 8 years ago

test_bug982141 doesn't account for scrollbars properly

Categories

(Core :: Panning and Zooming, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

Attachments

(1 file)

The test_bug982141 (added in bug 961289) was one of the first APZ mochitests and has withstood the ravages of time remarkably well. However, in the move from B2G to desktop (bug 1251608), I neglected to properly take into account the effect of non-overlay scrollbars. In particular, the hard-coded "50" in the test should really subtract off the scrollbar width/height when there are non-overlay scrollbars. Or more simply, it should just use the clientWidth/clientHeight of the subframe which already excludes those values (test_scroll_subframe_scrollbar.html uses that to good effect).

This bug was masked by the fact that the displayport gets aligned to tiles (or 128 on non-tiling platforms), and so even if there are scrollbars present the displayport is large enough to cover the required 50 pixels. However in bug 1216924 I remove this alignment when displayport suppression is occurring, and that exposes this bug in the test.
Attached patch Patch (deleted) — Splinter Review
Attachment #8729838 - Flags: review?(botond)
Comment on attachment 8729838 [details] [diff] [review]
Patch

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

Good catch, thanks for fixing this!
Attachment #8729838 - Flags: review?(botond) → review+
https://hg.mozilla.org/mozilla-central/rev/48c0d3800c35
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: