Bug 1504909 Part 1 - Include current point and endpoint in paused packets, r=lsmyth.

--HG--
extra : rebase_source : 102bbe18778f08b7b03fc7c829809757936241ea
This commit is contained in:
Brian Hackett 2018-11-06 07:36:20 -10:00
Родитель 4be7187910
Коммит 651069d959
3 изменённых файлов: 18 добавлений и 6 удалений

Просмотреть файл

@ -62,13 +62,20 @@ ReplayDebugger.prototype = {
replayResumeBackward() { RecordReplayControl.resume(/* forward = */ false); },
replayResumeForward() { RecordReplayControl.resume(/* forward = */ true); },
replayTimeWarp: RecordReplayControl.timeWarp,
replayRecordingPosition: RecordReplayControl.recordingPosition,
replayPause() {
RecordReplayControl.pause();
this._repaint();
},
replayCurrentExecutionPoint() {
return this._sendRequest({ type: "currentExecutionPoint" });
},
replayRecordingEndpoint() {
return this._sendRequest({ type: "recordingEndpoint" });
},
addDebuggee() {},
removeAllDebuggees() {},

Просмотреть файл

@ -717,6 +717,14 @@ const gRequestHandlers = {
getNewConsoleMessage(request) {
return convertConsoleMessage(gConsoleMessages[gConsoleMessages.length - 1]);
},
currentExecutionPoint(request) {
return RecordReplayControl.currentExecutionPoint();
},
recordingEndpoint(request) {
return RecordReplayControl.recordingEndpoint();
},
};
// eslint-disable-next-line no-unused-vars

Просмотреть файл

@ -1484,11 +1484,8 @@ const ThreadActor = ActorClassWithSpec(threadSpec, {
}
if (this.dbg.replaying) {
const message = this.dbg.getNewConsoleMessage();
packet.recordingProgress = this.dbg.replayRecordingPosition();
if (message) {
packet.executionPoint = message.executionPoint;
}
packet.executionPoint = this.dbg.replayCurrentExecutionPoint();
packet.recordingEndpoint = this.dbg.replayRecordingEndpoint();
}
if (poppedFrames) {