Console keeps scrolling down
Categories
(DevTools :: Console, defect, P1)
Tracking
(firefox-esr91 unaffected, firefox-esr102102+ verified, firefox101 wontfix, firefox102 verified, firefox103 verified)
People
(Reporter: drmccoy, Assigned: nchevobbe)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-release+
RyanVM
:
approval-mozilla-esr102+
|
Details | Review |
My problem is the opposite of https://bugzilla.mozilla.org/show_bug.cgi?id=1760910 . Basically, I scroll up in the JavaScript console to inspect data, but the console keeps forcibly scrolling to the bottom.
I think I've found why it does that. I see this happening when having the console pulled up in the virtual tabletop "Foundry VTT", which does a periodic (every second XHR to /api/status). Every time the XHR happens, the console is forced to the bottom.
However, this only happens when the XHR are filtered away using the selector thingy at the top-right of the dev tools. Basically, it seems that when the XHR are not filtered away, the console correctly checks that, yes, the user manually scrolled to up, so we don't want to force them down; but when the XHR are filtered away, that check doesn't happen, so the console is forced to the bottom even though the new message isn't even shown.
Unfortunately, I don't think I can offer an easy way for someone else to reproduce this issue, save using Foundry VTT itself.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
•
|
||
Hello drmccoy, thanks a lot for the report
I think I was able to narrow down the issue
Steps to reproduce
- Go to https://ffx-devtools-console-stuck-bottom-evaluation-xhr.glitch.me/
- Open the console
- Evaluate
1 + 1
- Try to scroll up
Expected results
You can scroll up fine
Actual results
The console keep scrolling back to the bottom
This only seems to happen when the last displayed message in the list is an evaluation result, so if a new log comes in, it will "unstuck" the scroll.
Can you confirm drmccoy ?
Assignee | ||
Updated•3 years ago
|
Yes, exactly, I can confirm.
(In your example, I also had to filter out Errors because of CORS stuff, though, but that changes nothing of the result. Also, now my IP seems to be(temporarily?) blocked with 429 Too Many Requests, so I'm answering via mobile LTE now)
Assignee | ||
Comment 3•3 years ago
•
|
||
(In reply to drmccoy from comment #2)
Yes, exactly, I can confirm.
Great!
(In your example, I also had to filter out Errors because of CORS stuff, though, but that changes nothing of the result. Also, now my IP seems to be(temporarily?) blocked with 429 Too Many Requests, so I'm answering via mobile LTE now)
Yeah sorry about that, I put the test page on Glitch instead, there shouldn't be error anymore
Assignee | ||
Comment 4•3 years ago
|
||
Okay so that's because of this change I made https://hg.mozilla.org/mozilla-central/rev/6955b2d62aa9a2bd9f803439f28cd1e984ddf850
we shouldn't check this through visible messages, as the "last displayed message" can be true for various reasons, and not only that we just displayed the result
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Set release status flags based on info from the regressing bug 1753942
Assignee | ||
Comment 6•3 years ago
|
||
When the last visible message was an evaluation result
but the last message in the store was something else,
the console would trigger the pin-to-bottom behavior.
This is fixed by checking if the last message in the
store (and not the last visible message) is a result.
A test case is added to make sure we don't regress.
Comment 8•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Assignee | ||
Comment 9•3 years ago
|
||
Comment on attachment 9282755 [details]
Bug 1776262 - [devtools] Fix stuck to bottom console output. r=jdescottes.
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is an extremely annoying bug, making the webconsole, one of the most used panel in DevTools, misbehave. It would be unbearable for developers using ESR to suffer from this until next ESR is released
- User impact if declined: When using the console, user can't scroll up on some relatively easy to hit condition
- Fix Landed on Version: 103
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small DevTools only change + automated test
Comment 10•3 years ago
|
||
Comment on attachment 9282755 [details]
Bug 1776262 - [devtools] Fix stuck to bottom console output. r=jdescottes.
Approved for 102.1esr.
Comment 11•3 years ago
|
||
bugherder uplift |
Assignee | ||
Comment 12•3 years ago
|
||
Comment on attachment 9282755 [details]
Bug 1776262 - [devtools] Fix stuck to bottom console output. r=jdescottes.
Beta/Release Uplift Approval Request
- User impact if declined: When using the console, user can't scroll up on some relatively easy to hit condition
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: 1. Go to https://ffx-devtools-console-stuck-bottom-evaluation-xhr.glitch.me/
- Open the console
- Evaluate 1 + 1
- Try to scroll up
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small DevTools only change + automated test
- String changes made/needed:
- Is Android affected?: No
Assignee | ||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
Comment on attachment 9282755 [details]
Bug 1776262 - [devtools] Fix stuck to bottom console output. r=jdescottes.
Approved for 102.0.1, thanks.
Comment 14•3 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Comment 15•3 years ago
|
||
I was able to reproduce the issue on Win10 using build 103.0a1(20220623190323) and steps from comment #1.
Verified as fixed on Win10/Ubuntu20.4/Mac 10.13 using Beta 103.0b4(20220703190044).
Comment 16•3 years ago
|
||
Verified as fixed on Win10/Mac10.13/Ubuntu20.4 using 102.0.1(20220705093820).
Updated•3 years ago
|
Updated•3 years ago
|
Comment 17•3 years ago
•
|
||
On build 102.1.0esr (20220630085807) from https://treeherder.mozilla.org/jobs?repo=mozilla-esr102 issue is fixed on Win10/Ubuntu20.4.
Comment 18•3 years ago
|
||
uplift |
https://hg.mozilla.org/releases/mozilla-esr102/rev/f9e8276b397e3e0632133c94a83bd51603044fc4 FIREFOX_ESR_102_0_X_RELBRANCH
Comment 19•3 years ago
|
||
Verified as fixed on Win10/Mac10.13/Ubuntu20.4 using build 102.0.1esr(20220711174428).
Description
•