Closed Bug 1580334 Opened 5 years ago Closed 5 years ago

Hovering on the timeline should update the debugger

Categories

(Core Graveyard :: Web Replay, enhancement, P3)

enhancement

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: jlast, Assigned: jlast)

References

Details

Attachments

(2 files)

When the user hovers on the timeline, the debugger should immediately update to show where the program was at that point in time.

Priority: -- → P3

This is a decent first attempt

diff --git a/devtools/client/webreplay/components/WebReplayPlayer.js b/devtools/client/webreplay/components/WebReplayPlayer.js
index a0c9cafc2750..8ea6e342b4b3 100644
--- a/devtools/client/webreplay/components/WebReplayPlayer.js
+++ b/devtools/client/webreplay/components/WebReplayPlayer.js
@@ -362,6 +362,8 @@ class WebReplayPlayer extends Component {
       return;
     }

+
+    this.toolbox.viewSourceInDebugger(closestMessage.frame.source, closestMessage.frame.url);
     this.paint(closestMessage.executionPoint);
   }

Ideally, we'd use a new action to preview the paused location which would prompt the debugline to show the blue background over the token the program was at at that point in time.

Currently, we can only update the debugger when the user hovers on a marker. To update the debugger generally, we'll need to be able to find sample points in the program that we can use. This is probably related to the control.js# findFrameSteps.

Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1416218ae397
Hovering on the timeline should update the debugger.
Flags: needinfo?(jlaster)
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8eacd9c4b5ef
Hovering on the timeline should update the debugger.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Assignee: nobody → jlaster
Flags: needinfo?(jlaster)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: