Closed Bug 1665332 Opened 4 years ago Closed 4 years ago

ScrollFrameHelper::mZoomableByAPZ gets cleared when the scroll frame is reconstructed

Categories

(Core :: Layout: Scrolling and Overflow, defect)

defect

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

Details

Attachments

(4 files)

No description provided.

Otherwise the only time it gets set is when the ZoomConstraintsClient specifically sets it in response to one of the things that can change it. But if the scroll frame gets reconstructed and one of those things don't happen it will be wrong.

This shows up with desktop zooming scrollbars because we check mZoomableByAPZ (or WantAsyncScroll()) before we use the apz scroll path in ScrollFrameHelper::ScrollBy().

Depends on D90383

Severity: -- → S3
Status: NEW → ASSIGNED
Attached file Bug 1665332. Add test. r?kats (deleted) —

This test covers bug 1665323, bug 1665326, and bug 1665332. (Each bug fixes one problem that comes up with the same STR that this mochitest reproduces.)

I checked that this fails before my patches and passes after them.

Keywords: leave-open
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/03abdf1d3655
Have ZoomConstraintsClient keep it's ZoomConstraints around so it can be queried later. r=kats
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bb1437fa93d0
Fetch the value of mZoomableByAPZ in the ScrollFrameHelper constructor so it is always correct. r=kats
Keywords: leave-open
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/134746c4644d
Make sure to initialize all fields of the ZoomConstraints to the correct values on ZoomConstraintsClient in all cases. r=kats
Flags: needinfo?(tnikkel)
Keywords: leave-open
Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a2b9bbe90d4f
Fetch the value of mZoomableByAPZ in the ScrollFrameHelper constructor so it is always correct. r=kats
Keywords: leave-open
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Flags: needinfo?(tnikkel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: