Bug 1483350 - Fix some control logic bugs, r=loganfsmyth.

--HG--
extra : rebase_source : 28501766085216f8e731a0ea205a80eea069a798
This commit is contained in:
Brian Hackett 2019-05-21 17:44:53 -10:00
Родитель b818dcba2c
Коммит d8aca5bfb7
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -274,6 +274,13 @@ ChildProcess.prototype = {
},
});
this.asyncManifests.shift();
// If this is the active child then we shouldn't leave it in an unpaused
// state, so callers can interact with it as expected.
if (this == gActiveChild) {
this.waitUntilPaused();
}
return true;
},
};
@ -1214,7 +1221,9 @@ const gControl = {
pauseReplayingChild(gPausePoint);
gActiveChild.sendManifest({
contents: { kind: "batchDebuggerRequest", requests: gDebuggerRequests },
onFinished(finishData) { assert(!finishData.restoredCheckpoint); },
onFinished(finishData) {
assert(!finishData || !finishData.restoredCheckpoint);
},
});
gActiveChild.waitUntilPaused();
return { unhandledDivergence: true };