Closed
Bug 1469959
Opened 6 years ago
Closed 6 years ago
Clicking on scrolled out expanded object updates the scroll
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox-esr52 unaffected, firefox-esr60 unaffected, firefox61 unaffected, firefox62 verified, firefox63 verified)
VERIFIED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | unaffected |
firefox61 | --- | unaffected |
firefox62 | --- | verified |
firefox63 | --- | verified |
People
(Reporter: jdescottes, Assigned: nchevobbe)
References
Details
(Keywords: regression)
Attachments
(2 files)
1.63 MB,
video/mp4
|
Details | |
59 bytes,
text/x-review-board-request
|
bgrins
:
review+
lizzard
:
approval-mozilla-beta+
|
Details |
STRs:
- open console
- log an object with many properties, eg `document`
- expand the object
- scrolldown until you see `prototype`
- expand prototype
ER: prototype is expanded
AR: viewport scrolls to show the beginning of the object, prototype is not expanded
Reporter | ||
Comment 1•6 years ago
|
||
see attachment for STRs
Reporter | ||
Comment 2•6 years ago
|
||
I see the tree component already tries to avoid scrolling when user clicks on the tree. However before triggering the click event, a focus event is first received, which triggers the scroll.
The tree seems to lose the focus every time we expand it, fixing this is probably another way to approach this issue.
Assignee | ||
Comment 3•6 years ago
|
||
That looks bad. I'll do a mozregression when I get a better connection to see how long it's been here.
Assignee | ||
Comment 4•6 years ago
|
||
DevEdition doesn't appear to be impacted.
Assignee: nobody → nchevobbe
Priority: -- → P1
Updated•6 years ago
|
Keywords: regressionwindow-wanted
Assignee | ||
Comment 5•6 years ago
|
||
With the help of mozregression, I found this change to be the one introducing this issue: https://hg.mozilla.org/integration/mozilla-inbound/diff/eceb175f714a/devtools/client/shared/components/reps/reps.js (from this changeset https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=a04929db78d35914678d26aee21872cebceb98cf&tochange=eceb175f714a6b6821c9b5ea874b2982defaa883).
This was originally made in this PR https://github.com/devtools-html/debugger.html/pull/6335
Updated•6 years ago
|
Keywords: regressionwindow-wanted → regression
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 9•6 years ago
|
||
mozreview-review |
Comment on attachment 8987748 [details]
Bug 1469959 - Don't use relatedTarget to check if the ObjectInspector was focused by tabbing; .
https://reviewboard.mozilla.org/r/253024/#review259616
::: devtools/client/webconsole/test/mochitest/browser_webconsole_object_inspector_scroll.js:10
(Diff revision 3)
> +
> +// Check that expanding an objectInspector node doesn't alter the output scroll position.
> +const TEST_URI = "data:text/html;charset=utf8,test Object Inspector";
> +
> +add_task(async function() {
> + const toolbox = await openNewTabAndToolbox(TEST_URI, "webconsole");
Note: we should probably have a getter for toolbox on `hud`, so we could still use openNewTabAndConsole to get hud directly then fetch toolbox from there.
This is done in a number of tests (https://searchfox.org/mozilla-central/search?q=toolbox.getCurrentPanel().hud&path=) so maybe we should spin off a separate bug to simplify this access.
Attachment #8987748 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Comment 10•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8987748 [details]
Bug 1469959 - Don't use relatedTarget to check if the ObjectInspector was focused by tabbing; .
https://reviewboard.mozilla.org/r/253024/#review259616
> Note: we should probably have a getter for toolbox on `hud`, so we could still use openNewTabAndConsole to get hud directly then fetch toolbox from there.
>
> This is done in a number of tests (https://searchfox.org/mozilla-central/search?q=toolbox.getCurrentPanel().hud&path=) so maybe we should spin off a separate bug to simplify this access.
Sounds good, I filed Bug 1471245 for this.
Comment hidden (mozreview-request) |
Comment 13•6 years ago
|
||
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eb6d71b705a8
Don't use relatedTarget to check if the ObjectInspector was focused by tabbing; r=bgrins.
Comment 14•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Updated•6 years ago
|
Blocks: 1463415
status-firefox61:
--- → unaffected
status-firefox62:
--- → affected
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → unaffected
Assignee | ||
Comment 15•6 years ago
|
||
Comment on attachment 8987748 [details]
Bug 1469959 - Don't use relatedTarget to check if the ObjectInspector was focused by tabbing; .
Approval Request Comment
[Feature/Bug causing the regression]: Bug 1463415
[User impact if declined]: Can't expand an object in the webconsole + weird scroll behavior
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: Yes
- Open the webconsole at the bottom of the screen
- Evaluate `inspect(Math)`
- Make sure there's a vertical scrollbar on the console
- Scroll to the bottom and click on the "<prototype>" node
- Make sure the node is correctly expanded and that the scroll position stays the same.
[List of other uplifts needed for the feature/fix]: -
[Is the change risky?]: No
[Why is the change risky/not risky?]: Because it rolls back the small piece of code that introduced this issue and a test was added to make sure this works as expected.
[String changes made/needed]: -
Attachment #8987748 -
Flags: approval-mozilla-beta?
Comment 16•6 years ago
|
||
Comment on attachment 8987748 [details]
Bug 1469959 - Don't use relatedTarget to check if the ObjectInspector was focused by tabbing; .
Fix for a new regression, let's take this for beta 4. Thanks for the new test!
Attachment #8987748 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 17•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Flags: qe-verify+
Comment 18•6 years ago
|
||
I've reproduced the issue on Firefox Nightly 62.0a1 (2018-06-19) under Windows 10 (x64), using STR from Comment 0.
The issue is no longer reproducible on Firefox Beta 62.0b4 and Firefox Nightly 63.0a1 (2018-06-29). The tests were performed under Windows 10 (x64), Ubuntu 16.04 (x64) and macOS 10.12.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Reporter | ||
Comment 19•6 years ago
|
||
This issue is back in recent nightlies, with the new JSTerm. Should we reopen or file a new bug?
Flags: needinfo?(nchevobbe)
Assignee | ||
Comment 20•6 years ago
|
||
We should file a new one since the regression happened recently (I think I know where)
Flags: needinfo?(nchevobbe)
You need to log in
before you can comment on or make changes to this bug.
Description
•