Fix scrolling behaviour when opening stacktraces/groups



2 years ago
8 months ago


(Reporter: nchevobbe, Unassigned)


(Depends on: 1 bug)

49 Branch

Firefox Tracking Flags

(Not tracked)





2 years ago
If there's a lot of message, expanding a group/stacktrace make the console scrolls to the bottom of the page, which can "hide" the group/stacktrace we want to see.
When expanding a stacktrace, we should stay in the same place and see the stacktrace.

Comment 1

2 years ago
1. Open the URL (data:text/html,<script type="text/javascript">console.groupCollapsed("a");console.log("a");console.groupEnd("a");for(var i=0;i<200;i++)console.log(i);</script>)
2. Open the console
3. Scroll up to the 
4. Open the "a" group

Expected result : The group opens and reveals the "a" message, the console does not scroll
Actual result: The group opens and reveals the "a" message, but the console scrolls way down to the bottom, and this the message is not visible in the viewport.
There's a decent chance this will be fixed with Bug 1307932
Depends on: 1307932
Priority: P2 → P1
Also, I'm going to be testing using react-virtualized to help with performance. If that's the case, then the way we handle scrolling will be different.
As per the DevTools triage process doc [1], a P1 is defined as:
- a security hole
- causing data-loss
- causing a crash
- stopping the tools working
- embarrassing
Should be fixed within 24h and your manager should know about it and, between you, assign it to someone who can fix it.

Maybe the "24h" part of this definition is a little too much and we should change it, but anyway, this does seem like a P1 and it should be assigned.

This is likely to be fixed with the perf work, so removing the P1 status.
Priority: P1 → P2
This will likely be fixed by Bug 1308216
Depends on: 1308216
No longer depends on: 1307932


8 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.