Closed Bug 1578373 Opened 5 years ago Closed 5 years ago

The mouse isn't properly followed in the graphical part

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect, P1)

defect

Tracking

(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox69 unaffected, firefox70 verified, firefox71+ verified)

VERIFIED FIXED
Firefox 71
Tracking Status
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox69 --- unaffected
firefox70 --- verified
firefox71 + verified

People

(Reporter: julienw, Assigned: jdescottes)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. Record some profile from the performance tab in the devtools. Note: this is about the default (aka old) panel.
  2. Hover with the mouse on top of the graphical part at the top of the window.
    => see that the vertical cursor doesn't follow the mouse properly, there's some translation.
  3. Try to select a range.
    => the translation is still there.

I found that the problem is even worse when the devtools are docked to the right, and not too wide.

Priority: -- → P2
Priority: P2 → P1

I reproduced on Mac and Linux.

Managed to reproduce the issue on Nightly 71.0a1 (2019-09-09) with MacOS 10.13.6.

Has Regression Range: --- → yes
Has STR: --- → yes
Flags: needinfo?(felash)

Thanks Gabi!
Looks like bug 1539979 regressed this, then.
Julian, any idea?

Flags: needinfo?(felash) → needinfo?(jdescottes)
Regressed by: 1539979

thanks for the ping!
In Graphs.js (https://searchfox.org/mozilla-central/rev/588814f2edddf0e132d77d326ddae50911e8bad1/devtools/client/shared/widgets/Graphs.js#109), the following code no longer returns the expected window when running in a content frame.

this._topWindow = this._window.top;
Flags: needinfo?(jdescottes)
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5e185d44f74f
Stop using window.top in devtools/client/shared/widgets/Graphs.js r=julienw
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71

Is this something we should consider for Beta uplift?

Flags: needinfo?(jdescottes)

Comment on attachment 9091919 [details]
Bug 1578373 - Stop using window.top in devtools/client/shared/widgets/Graphs.js

Beta/Release Uplift Approval Request

  • User impact if declined: UI Bug when using the performance panel in DevTools
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: (adapted from the summary)
  • open devtools
  • dock devtools to the right
  • select performance panel
  • record a profile
  • mouseover the profile to see the vertical cursor appear in the chart

ER: the vertical line should be exactly under the cursor
AR: the vertical line is either invisible or has an offset

  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Minor javascript change
  • String changes made/needed:
Flags: needinfo?(jdescottes)
Attachment #9091919 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Verified as fixed with 71.0a1 (2019-09-22) on Windows 10x64, Ubuntu 16.04 and macOS 10.13.6

Flags: qe-verify+

Comment on attachment 9091919 [details]
Bug 1578373 - Stop using window.top in devtools/client/shared/widgets/Graphs.js

Minimal js patch which fixes a regression and was verified on Nightly, uplift appoved for 70 beta 9, thanks.

Attachment #9091919 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: → 1583444

Verified as fixed with 70.0b9 on Ubuntu 18.04, Windows 10x64 and macOS 10.13.6.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: