Closed
Bug 1534938
Opened 5 years ago
Closed 5 years ago
Expanding a console.group message shouldn't scroll to bottom
Categories
(DevTools :: Console, defect, P1)
Tracking
(firefox68 fixed)
RESOLVED
FIXED
Firefox 68
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
(Whiteboard: [console-grouping])
Attachments
(1 file)
Steps to reproduce
- Go to https://nchevobbe.github.io/demo/console-test-app.html
- Open the console
- Log multiple messages until the console output overflows
- Click on the
groupCollapsed
button - Add multiple logs
- Click on the
groupEnd
button - Add one info log
- Expand the
groupCollapsed
message in the console
Expected results
The scroll position does not change, so the group header message is still at the same position
Actual results
The output is scrolled to the bottom after opening the group.
Assignee | ||
Updated•5 years ago
|
Whiteboard: [console-group]
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1
Assignee | ||
Updated•5 years ago
|
Whiteboard: [console-group] → [console-grouping]
Assignee | ||
Comment 1•5 years ago
|
||
The heuristic to scroll the console output to the bottom was
to only look if new messages were visible. But it can happen
that such case is triggered by only opening a closed group.
This patch tweaks the heuristic a bit to exclude the case
where we open a group, while making sure that we still
scroll to bottom if there are new, opened, group messages.
A test is added to ensure this works as expected.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89c31db7b51e Don't scroll to bottom when opening a group. r=Honza.
Comment 3•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
You need to log in
before you can comment on or make changes to this bug.
Description
•