Closed Bug 1571992 Opened 6 years ago Closed 6 years ago

isScrolledToBottom isn't used properly

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox70 fixed)

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

The parameter in ConsoleOutput.js#268 indicate it takes the outputNode, but the callsites pass it the last node already (ConsoleOutput.js#165,167).
This means that scrollToBottom is only true when the scrollbar is all the way to the bottom, and sometimes, if you're zoomed in, the regular flow might lose the pin-to-bottom feature.

The function was expecting the outputNode, but the
callers pass it the outputNode lastChild.
We modify the function to work with this lastNode
instead of the outputNode.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: